Adding flatpak remotes in system mode

This commit is contained in:
XargonWan 2024-11-05 20:47:52 +09:00
parent 87dcb50dde
commit ef210c0721
2 changed files with 14 additions and 2 deletions

View file

@ -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" ]

View file

@ -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"
```