move all build scripts into flatpak-build dir

* additionally, remove maven-dependencies
This commit is contained in:
Armin Schrenk
2026-03-20 16:54:05 +01:00
parent b606a4ee8e
commit 3c633f8a34

View File

@@ -41,22 +41,24 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
path: cryptomator
- name: Get SHA of HEAD commit
id: git-head-sha
run: echo "head-sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
- name: Transform build template into build script
run: envsubst '$FLATPAK_VERSION $FLATPAK_REVISION $CRYPTOMATOR_SOURCE' < cryptomator/dist/linux/flatpak/org.cryptomator.Cryptomator.TEMPLATE.yaml > org.cryptomator.Cryptomator.yaml
- name: Prepare build files
run: |
mkdir 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
yq '(.modules[] | select(.name == "cryptomator") | .build-options.build-args) = ["--share=network"]' -i flatpak-build/org.cryptomator.Cryptomator.yaml
yq '(.modules[] | select(.name == "cryptomator") | .sources) |= map(select( . == "maven*" | not))' -i flatpak-build/org.cryptomator.Cryptomator.yaml
env:
FLATPAK_VERSION: ${{ needs.get-version.outputs.semVerNum }}
FLATPAK_REVISION: 1
CRYPTOMATOR SOURCE: |-
type: git
path: cryptomator
commit: ${{ steps.git-head-sha.outputs.head-sha }}
commit: ${{ github.sha }}
- uses: flatpak/flatpak-github-actions/flatpak-builder@92ae9851ad316786193b1fd3f40c4b51eb5cb101 # v6.6
with:
bundle: cryptomator.flatpak
manifest-path: org.cryptomator.Cryptomator.yaml
manifest-path: flatpak-build/org.cryptomator.Cryptomator.yaml
cache-key: flatpak-builder-${{ github.sha }}
#build-dir: flatpak_app
#gpg-sign: