diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 52f0917..53aac6d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -186,7 +186,7 @@ jobs: VERSION_NAME=$(grep '^version:' pubspec.yaml | cut -d ':' -f2 | cut -d '+' -f1 | tr -d ' ') echo "PACKAGE_NAME=$APP_NAME-macOS-$VERSION_NAME" >> $GITHUB_ENV - flutter build macos + flutter build macos --build-name=$VERSION_NAME --build-number=${{ github.run_number }} - name: Create DMG file run: | @@ -199,37 +199,37 @@ jobs: path: build/macos/Build/Products/Release/${{ env.PACKAGE_NAME }}.dmg build-linux: - runs-on: ubuntu-latest + runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4.1.1 + steps: + - name: Checkout repository + uses: actions/checkout@v4.1.1 - - name: Set up Flutter - uses: subosito/flutter-action@v2.16.0 - with: - channel: ${{ vars.FLUTTER_CHANNEL }} - flutter-version: ${{ vars.FLUTTER_VERSION }} - cache: true - cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" # optional, change this to force refresh cache - cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" # optional, change this to specify the cache path + - name: Set up Flutter + uses: subosito/flutter-action@v2.16.0 + with: + channel: ${{ vars.FLUTTER_CHANNEL }} + flutter-version: ${{ vars.FLUTTER_VERSION }} + cache: true + cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" # optional, change this to force refresh cache + cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" # optional, change this to specify the cache path - - name: Get dependencies - run: flutter pub get + - name: Get dependencies + run: flutter pub get - - name: Get packages - run: | - sudo apt-get update -y - sudo apt-get install -y ninja-build libgtk-3-dev libmpv-dev + - name: Get packages + run: | + sudo apt-get update -y + sudo apt-get install -y ninja-build libgtk-3-dev libmpv-dev - - name: Build Linux app - run: flutter build linux + - name: Build Linux app + run: flutter build linux - - name: Archive Linux artifact - uses: actions/upload-artifact@v4 - with: - name: linux - path: build/linux/x64/release/bundle + - name: Archive Linux artifact + uses: actions/upload-artifact@v4 + with: + name: linux + path: build/linux/x64/release/bundle build-web: runs-on: ubuntu-latest diff --git a/pubspec.yaml b/pubspec.yaml index 3f11fc1..428534f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 0.2.4+1 +version: 0.2.5+1 environment: sdk: ">=3.1.3 <4.0.0"