mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
fix: Use correct version code & name (#1647)
This commit is contained in:
parent
bea99bb4c6
commit
d933997c89
9
.github/workflows/release-build.yml
vendored
9
.github/workflows/release-build.yml
vendored
@ -42,8 +42,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Bump pubspec version
|
- name: Bump pubspec version
|
||||||
run: |
|
run: |
|
||||||
IFS='.' read -r -a nums <<< "${RELEASE_VERSION/-dev/}.0"
|
|
||||||
VERSION=$(echo "${RELEASE_VERSION}" | sed 's/v//')
|
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]))
|
VERSIONCODE=$((nums[0] * 100000000 + nums[1] * 100000 + nums[2] * 100 + nums[3]))
|
||||||
sed -i "/^version/c\\version: $VERSION+$VERSIONCODE" pubspec.yaml
|
sed -i "/^version/c\\version: $VERSION+$VERSIONCODE" pubspec.yaml
|
||||||
|
|
||||||
@ -54,11 +54,6 @@ jobs:
|
|||||||
run: dart run build_runner build --delete-conflicting-outputs
|
run: dart run build_runner build --delete-conflicting-outputs
|
||||||
|
|
||||||
- name: Build with Flutter
|
- 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
|
run: flutter build apk
|
||||||
|
|
||||||
- name: Sign APK
|
- name: Sign APK
|
||||||
@ -72,7 +67,7 @@ jobs:
|
|||||||
keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}
|
keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}
|
||||||
|
|
||||||
- name: Rename APK
|
- 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
|
- name: Publish release APK
|
||||||
env:
|
env:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user