Skip to content

Commit

Permalink
Changed!: Add -app suffix to app name and add version name in APKs …
Browse files Browse the repository at this point in the history
…generated
  • Loading branch information
agnostic-apollo committed Jun 22, 2024
1 parent 4d65c57 commit 5aafa2c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/github_action_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
APK_DIR_PATH="./app/build/outputs/apk/debug"
APK_VERSION_TAG="$RELEASE_VERSION_NAME.github.debug" # Note the ".", GITHUB_SHA will already have "+" before it
APK_BASENAME_PREFIX="termux-boot_$APK_VERSION_TAG"
APK_BASENAME_PREFIX="termux-boot-app_$APK_VERSION_TAG"
# Used by upload step later
echo "APK_DIR_PATH=$APK_DIR_PATH" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/github_release_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
APK_DIR_PATH="./app/build/outputs/apk/debug"
APK_VERSION_TAG="$RELEASE_VERSION_NAME+github.debug"
APK_BASENAME_PREFIX="termux-boot_$APK_VERSION_TAG"
APK_BASENAME_PREFIX="termux-boot-app_$APK_VERSION_TAG"
echo "Building APK file for '$RELEASE_VERSION_NAME' release with '$APK_VERSION_TAG' tag"
export TERMUX_BOOT_APP_BUILD__APK_VERSION_TAG="$APK_VERSION_TAG" # Used by app/build.gradle
Expand Down
7 changes: 2 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,8 @@ android {

applicationVariants.all { variant ->
variant.outputs.all { output ->
if (variant.buildType.name == "debug") {
outputFileName = new File("termux-boot_" + (apkVersionTag ? apkVersionTag : "debug") + ".apk")
} else if (variant.buildType.name == "release") {
outputFileName = new File("termux-boot_" + (apkVersionTag ? apkVersionTag : "release") + ".apk")
}
outputFileName = new File("termux-boot-app_" +
(apkVersionTag ? apkVersionTag : "v" + versionName + "+" + variant.buildType.name) + ".apk")
}
}
}
Expand Down

0 comments on commit 5aafa2c

Please sign in to comment.