Skip to content

Commit

Permalink
Add package specific README.md
Browse files Browse the repository at this point in the history
Signed-off-by: Ferenc Géczi <[email protected]>
  • Loading branch information
Ferenc- committed Jan 25, 2024
1 parent a00b535 commit 39ac8b1
Showing 1 changed file with 73 additions and 17 deletions.
90 changes: 73 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,83 @@
# Flathub
# MyGNUHealth Flatpak

Flathub is the central place for building and hosting Flatpak builds.
This is the [MyGNUHealth](https://docs.gnuhealth.org/mygnuhealth/) Flatpak.

Using the Flathub repository
----------------------------

To install applications that are hosted on Flathub, use the following:
```
flatpak remote-add flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub org.gnome.Recipes
```
# Users

This section covers installation instructions and additional information for MyGNUHealth users.

### Install

Add the Flathub remote.

flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Install the MyGNUHealth Flatpak.

flatpak --user install -y flathub org.gnuhealth.mygnuhealth

To install applications from the beta branch, use the following:
### Known issues

#### Fonts and user elements are too big or too small.

This is an upstream scaling issue.
Read the `Manual control of metrics` section in the [Kivy documentation](https://kivy.org/doc/stable/_modules/kivy/metrics.html)
and try to find the right `KIVY_DPI`, `KIVY_METRICS_DENSITY` (and optinally the `KIVY_METRICS_FONTSCALE`) value for your screen.
For example:

```bash
flatpak run --devel --command=bash org.gnuhealth.mygnuhealth
`KIVY_DPI=320 KIVY_METRICS_DENSITY=2.0 mygnuhealth --size 720x1440`
```
flatpak remote-add flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
flatpak install flathub-beta org.godotengine.Godot

Once you have the right values you can set them permanenty on this package:

```bash
flatpak override --env="KIVY_DPI=320 KIVY_METRICS_DENSITY=2.0" org.gnuhealth.mygnuhealth
```

For more information and more applications see https://flathub.org
## Maintainers

### Build

Get the build dependencies.

flatpak --user install -y flathub org.freedesktop.Platform//23.08 org.freedesktop.Sdk//23.08 org.freedesktop.Sdk.Extension.rust-stable//23.08

Get the source code.

git clone https://github.com/flathub/org.gnuhealth.mygnuhealth
cd org.gnuhealth.MyGNUHealth

Add the Flathub repository.

flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

Install Flatpak Builder.

sudo apt install flatpak-builder

Build the Flatpak.

flatpak-builder --user --install --install-deps-from=flathub --force-clean --repo=repo build-dir org.gnuhealth.mygnuhealth.yaml

Run the Flatpak.

flatpak run org.gnuhealth.MyGNUHealth

### Update

##### bcrypt

First, clone the bcrypt library, checking out the particular version to built as part of the Flatpak.

git clone https://github.com/pyca/bcrypt.git
git -C bcrypt pull
git -C bcrypt checkout <insert commit here>

Contributing to Flathub
-----------------------
Generate the Rust sources list using the `flatpak-cargo-generator` for the cryptography library's Rust crate.

For information on creating packages or reporting issues please see the [contributing page](/CONTRIBUTING.md).
python3 flatpak-builder-tools/cargo/flatpak-cargo-generator.py bcrypt/src/_bcrypt/Cargo.lock --format yaml -o bcrypt-cargo-sources.yaml

***Note:*** *this repository is not for reporting issues related to the flathub.org website itself or contributing to its development. For that, go to https://github.com/flathub-infra/website*
This generates a `bcrypt-cargo-sources.yaml` file which needs to be copied into the Flatpak manifest.

0 comments on commit 39ac8b1

Please sign in to comment.