ci(flatpak): fix

but actually this time
This commit is contained in:
edde746
2025-11-04 17:38:44 +01:00
parent 9a2e5e5358
commit feb9254aea
3 changed files with 11 additions and 5 deletions
+6 -1
View File
@@ -388,19 +388,24 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Replace version placeholders - name: Replace version and commit placeholders
run: | run: |
# Extract version from pubspec.yaml (e.g., "1.3.1+10" -> "1.3.1") # Extract version from pubspec.yaml (e.g., "1.3.1+10" -> "1.3.1")
VERSION=$(grep '^version:' pubspec.yaml | sed 's/version: //' | sed 's/+.*//' | tr -d ' ') VERSION=$(grep '^version:' pubspec.yaml | sed 's/version: //' | sed 's/+.*//' | tr -d ' ')
DATE=$(date -u +%Y-%m-%d) DATE=$(date -u +%Y-%m-%d)
COMMIT_SHA=$(git rev-parse HEAD)
echo "Version: $VERSION" echo "Version: $VERSION"
echo "Date: $DATE" echo "Date: $DATE"
echo "Commit SHA: $COMMIT_SHA"
# Replace placeholders in metainfo.xml # Replace placeholders in metainfo.xml
sed -i "s/{{VERSION}}/$VERSION/g" linux/com.edde746.plezy.metainfo.xml sed -i "s/{{VERSION}}/$VERSION/g" linux/com.edde746.plezy.metainfo.xml
sed -i "s/{{DATE}}/$DATE/g" linux/com.edde746.plezy.metainfo.xml sed -i "s/{{DATE}}/$DATE/g" linux/com.edde746.plezy.metainfo.xml
# Replace commit SHA placeholder in manifest
sed -i "s/{{COMMIT_SHA}}/$COMMIT_SHA/g" linux/com.edde746.plezy.yml
- name: Preprocess Flatpak manifest with flatpak-flutter - name: Preprocess Flatpak manifest with flatpak-flutter
run: | run: |
docker run --rm \ docker run --rm \
+2 -2
View File
@@ -23,8 +23,8 @@
<launchable type="desktop-id">com.edde746.plezy.desktop</launchable> <launchable type="desktop-id">com.edde746.plezy.desktop</launchable>
<url type="homepage">https://github.com/edde746/plex-flutter</url> <url type="homepage">https://github.com/edde746/plezy</url>
<url type="bugtracker">https://github.com/edde746/plex-flutter/issues</url> <url type="bugtracker">https://github.com/edde746/plezy/issues</url>
<screenshots> <screenshots>
<screenshot type="default"> <screenshot type="default">
+3 -2
View File
@@ -75,8 +75,9 @@ modules:
- install -Dm644 android/fastlane/metadata/android/en-GB/images/icon.png /app/share/icons/hicolor/512x512/apps/com.edde746.plezy.png - install -Dm644 android/fastlane/metadata/android/en-GB/images/icon.png /app/share/icons/hicolor/512x512/apps/com.edde746.plezy.png
sources: sources:
- type: dir - type: git
path: . url: https://github.com/edde746/plex-flutter.git
commit: {{COMMIT_SHA}}
- type: git - type: git
url: https://github.com/flutter/flutter.git url: https://github.com/flutter/flutter.git