Skip to content

Commit

Permalink
Fix copy apks
Browse files Browse the repository at this point in the history
  • Loading branch information
phnzb committed Jul 23, 2024
1 parent eda9287 commit 0512733
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions scripts/build-apks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ fi

# build debug
./gradlew assembleDebug
cp app/build/outputs/apk/debug/app-debug.apk build/

# build unsigned release
./gradlew assembleRelease
cp app/build/outputs/apk/release/app-release-unsigned.apk build/

# build signed release
if [ ! -z $SIGN_STORE ] && [ ! -z $SIGN_PASSWORD ]; then
Expand All @@ -20,13 +22,9 @@ if [ ! -z $SIGN_STORE ] && [ ! -z $SIGN_PASSWORD ]; then
-Pandroid.injected.signing.store.password=$SIGN_PASSWORD \
-Pandroid.injected.signing.key.alias=nzbget-key \
-Pandroid.injected.signing.key.password=$SIGN_PASSWORD
cp app/build/outputs/apk/release/app-release.apk build/
fi

# copy apks to build directory
cp app/build/outputs/apk/debug/app-debug.apk build/
cp app/build/outputs/apk/release/app-release-unsigned.apk build/
cp app/build/outputs/apk/release/app-release.apk build/

# rename apks
for FILE in build/*.apk; do
NEW_FILE=${FILE/app-/nzbget-android-$VERSION-}
Expand Down

0 comments on commit 0512733

Please sign in to comment.