diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 11732230..bb3ac708 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 \ diff --git a/linux/com.edde746.plezy.metainfo.xml b/linux/com.edde746.plezy.metainfo.xml index ed5b97a7..60b17f02 100644 --- a/linux/com.edde746.plezy.metainfo.xml +++ b/linux/com.edde746.plezy.metainfo.xml @@ -23,8 +23,8 @@ com.edde746.plezy.desktop - https://github.com/edde746/plex-flutter - https://github.com/edde746/plex-flutter/issues + https://github.com/edde746/plezy + https://github.com/edde746/plezy/issues diff --git a/linux/com.edde746.plezy.yml b/linux/com.edde746.plezy.yml index 1d217508..81ed2026 100644 --- a/linux/com.edde746.plezy.yml +++ b/linux/com.edde746.plezy.yml @@ -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