Update: Flatpak CI

This commit is contained in:
Jakub Melka 2025-03-30 16:57:34 +02:00
parent 0970dd8054
commit 53751558fd
2 changed files with 7 additions and 7 deletions

View File

@ -8,11 +8,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install Dependencies
run: |
sudo apt update
sudo apt install -y appstream
- name: Verify AppStream Version
run: |
appstreamcli --version
@ -33,12 +28,17 @@ jobs:
- name: List Flatpak Installed Packages and Version
run: |
flatpak --version
appstreamcli --version
flatpak list
- name: Checkout repository
uses: actions/checkout@v3
- name: Inject Git commit hash into Flatpak manifest
run: |
COMMIT_HASH=$(git rev-parse HEAD)
echo "Current commit hash: $COMMIT_HASH"
sed -i "s/PDF4QT_LAST_COMMIT/$COMMIT_HASH/g" ./Flatpak/io.github.JakubMelka.Pdf4qt.json
- name: Build Flatpak
run: |
flatpak-builder --repo=repo --sandbox --force-clean build-dir ./Flatpak/io.github.JakubMelka.Pdf4qt.json

View File

@ -125,7 +125,7 @@
{
"type": "git",
"url": "https://github.com/JakubMelka/PDF4QT.git",
"commit": "01120bb542da6acfb47a540506ed2b50b08c66c1"
"commit": "PDF4QT_LAST_COMMIT"
}
]
}