Skip to content

Commit efa9ca2

Browse files
committed
fix: change capacitor apk name
1 parent de6e103 commit efa9ca2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/capacitor-android.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@ jobs:
6565
--androidreleasetype APK \
6666
--signing-type apksigner
6767
68+
- name: Rename APK with version from package.json
69+
run: |
70+
VERSION=$(node -p "require('./package.json').version")
71+
SRC="android/app/build/outputs/apk/release/app-release-signed.apk"
72+
DEST="android/app/build/outputs/apk/release/ADAMANT.Messenger-${VERSION}-signed.apk"
73+
mv "$SRC" "$DEST"
74+
6875
- name: Build and Sign Android App (AAB) 🛠️
6976
run: |
7077
npx cap sync

0 commit comments

Comments
 (0)