Use flathub repo

remove yq edits and simply override build yaml
This commit is contained in:
Armin Schrenk
2026-03-20 17:51:10 +01:00
parent a5ccfa01d2
commit f7b13dd121
7 changed files with 8 additions and 3158 deletions
+6 -9
View File
@@ -42,9 +42,14 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
path: cryptomator
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
repository: flathub/org.cryptomator.Cryptomator
path: flatpak-build
submodules: true
- name: Prepare build files
run: |
cp -r -f cryptomator/dist/linux/flatpak flatpak-build
cp -r -f cryptomator/dist/linux/flatpak/* flatpak-build
envsubst '$FLATPAK_VERSION $FLATPAK_REVISION $CRYPTOMATOR_SOURCE' < flatpak-build/org.cryptomator.Cryptomator.TEMPLATE.yaml > flatpak-build/org.cryptomator.Cryptomator.yaml
env:
FLATPAK_VERSION: ${{ needs.get-version.outputs.semVerNum }}
@@ -53,14 +58,6 @@ jobs:
type: git
path: cryptomator
commit: ${{ github.sha }}
- name: Enable network access for flatpak
uses: mikefarah/yq@5a7e72a743649b1b3a47d1a1d8214f3453173c51 # v4.52.4
with:
cmd: yq '(.modules[] | select(.name == "cryptomator") | .build-options.build-args) = ["--share=network"]' -i flatpak-build/org.cryptomator.Cryptomator.yaml
- name: Remove maven dependencies
uses: mikefarah/yq@5a7e72a743649b1b3a47d1a1d8214f3453173c51 # v4.52.4
with:
cmd: yq '(.modules[] | select(.name == "cryptomator") | .sources) |= map(select( . == "maven*" | not))' -i flatpak-build/org.cryptomator.Cryptomator.yaml
- uses: flatpak/flatpak-github-actions/flatpak-builder@92ae9851ad316786193b1fd3f40c4b51eb5cb101 # v6.6
with:
bundle: cryptomator.flatpak