ci(flatpak): fix
but actually this time
This commit is contained in:
@@ -388,19 +388,24 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Replace version placeholders
|
||||
- name: Replace version and commit placeholders
|
||||
run: |
|
||||
# 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 ' ')
|
||||
DATE=$(date -u +%Y-%m-%d)
|
||||
COMMIT_SHA=$(git rev-parse HEAD)
|
||||
|
||||
echo "Version: $VERSION"
|
||||
echo "Date: $DATE"
|
||||
echo "Commit SHA: $COMMIT_SHA"
|
||||
|
||||
# Replace placeholders in 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
|
||||
|
||||
# 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
|
||||
run: |
|
||||
docker run --rm \
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
|
||||
<launchable type="desktop-id">com.edde746.plezy.desktop</launchable>
|
||||
|
||||
<url type="homepage">https://github.com/edde746/plex-flutter</url>
|
||||
<url type="bugtracker">https://github.com/edde746/plex-flutter/issues</url>
|
||||
<url type="homepage">https://github.com/edde746/plezy</url>
|
||||
<url type="bugtracker">https://github.com/edde746/plezy/issues</url>
|
||||
|
||||
<screenshots>
|
||||
<screenshot type="default">
|
||||
|
||||
@@ -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
|
||||
|
||||
sources:
|
||||
- type: dir
|
||||
path: .
|
||||
- type: git
|
||||
url: https://github.com/edde746/plex-flutter.git
|
||||
commit: {{COMMIT_SHA}}
|
||||
|
||||
- type: git
|
||||
url: https://github.com/flutter/flutter.git
|
||||
|
||||
Reference in New Issue
Block a user