From ef210c07218246d277c9cb03d76894c0f2373bb6 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Tue, 5 Nov 2024 20:47:52 +0900 Subject: [PATCH] Adding flatpak remotes in system mode --- Dockerfile | 4 ++-- README.md | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6fae6d0..1d270a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,8 +13,8 @@ RUN dnf install -y \ dnf clean all # Add flathub and flathub-beta remotes for flatpak -RUN flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo && \ - flatpak remote-add --user --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo +RUN flatpak remote-add --system --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo +RUN flatpak remote-add --system --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo # Set default command (optional, for testing purposes) ENTRYPOINT [ "flatpak-builder", "--install-deps-from=flathub", "--install-deps-from=flathub-beta" ] \ No newline at end of file diff --git a/README.md b/README.md index 3e4e34a..36dbf3a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,14 @@ # retrodeck-builder A docker container to ease RetroDECK's build + +Example usage: +```bash +docker run --rm \ + -v "$PWD:/workspace" \ + -w /workspace \ + ghcr.io/retrodeck/retrodeck-builder:latest \ + --force-clean \ + --repo="/workspace/repo" \ + "/workspace/build-dir" \ + "net.retrodeck.retrodeck.yml" +```