From d933997c896fb4fb265256aa71b349932b93ceaa Mon Sep 17 00:00:00 2001 From: Benjamin <73490201+BenjaminHalko@users.noreply.github.com> Date: Mon, 22 Jan 2024 14:27:33 -0800 Subject: [PATCH] fix: Use correct version code & name (#1647) --- .github/workflows/release-build.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index aeff117d45..80aeacd5bb 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -42,8 +42,8 @@ jobs: - name: Bump pubspec version run: | - IFS='.' read -r -a nums <<< "${RELEASE_VERSION/-dev/}.0" VERSION=$(echo "${RELEASE_VERSION}" | sed 's/v//') + IFS='.' read -r -a nums <<< "${VERSION/-dev/}.0" VERSIONCODE=$((nums[0] * 100000000 + nums[1] * 100000 + nums[2] * 100 + nums[3])) sed -i "/^version/c\\version: $VERSION+$VERSIONCODE" pubspec.yaml @@ -54,11 +54,6 @@ jobs: run: dart run build_runner build --delete-conflicting-outputs - name: Build with Flutter - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }} - SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} - SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_KEYSTORE_PASSWORD }} run: flutter build apk - name: Sign APK @@ -72,7 +67,7 @@ jobs: keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }} - name: Rename APK - run: mv ${{steps.sign_apk.outputs.signedFile}} revanced-manager-v${{ env.RELEASE_VERSION }}.apk + run: mv ${{steps.sign_apk.outputs.signedFile}} revanced-manager-${{ env.RELEASE_VERSION }}.apk - name: Publish release APK env: