Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add package specific README.md #1

Merged
merged 1 commit into from
Feb 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.