search health
This commit is contained in:
@@ -12,13 +12,20 @@ binary are downloaded by `flatpak-builder` as checksum-pinned sources.
|
||||
|
||||
## Build
|
||||
|
||||
Install `flatpak` and `flatpak-builder` through the host package manager, then
|
||||
run from the repository root:
|
||||
Install `flatpak`, `flatpak-builder`, and `appstreamcli` through the host package
|
||||
manager, then run from the repository root:
|
||||
|
||||
```sh
|
||||
packaging/flatpak/build.sh
|
||||
```
|
||||
|
||||
On NixOS, all three tools can be provided without changing the system
|
||||
configuration:
|
||||
|
||||
```sh
|
||||
nix shell nixpkgs#flatpak nixpkgs#flatpak-builder nixpkgs#appstream
|
||||
```
|
||||
|
||||
The script configures the per-user Flathub remote when necessary, installs the
|
||||
GNOME SDK and SDK extensions through `flatpak-builder`, retains its reusable
|
||||
cache below `${XDG_CACHE_HOME:-$HOME/.cache}/komp-ac-flatpak-builder`, and
|
||||
|
||||
@@ -20,7 +20,7 @@ if [[ "$(uname -m)" != x86_64 ]]; then
|
||||
echo "The Flatpak production build currently supports x86_64 only" >&2
|
||||
exit 1
|
||||
fi
|
||||
for command in flatpak flatpak-builder; do
|
||||
for command in flatpak flatpak-builder appstreamcli; do
|
||||
if ! command -v "$command" >/dev/null 2>&1; then
|
||||
echo "$command is required to build the Flatpak" >&2
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user