Skip to content

Commit 5aafa2c

Browse files
Changed!: Add -app suffix to app name and add version name in APKs generated
1 parent 4d65c57 commit 5aafa2c

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

.github/workflows/github_action_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
4444
APK_DIR_PATH="./app/build/outputs/apk/debug"
4545
APK_VERSION_TAG="$RELEASE_VERSION_NAME.github.debug" # Note the ".", GITHUB_SHA will already have "+" before it
46-
APK_BASENAME_PREFIX="termux-boot_$APK_VERSION_TAG"
46+
APK_BASENAME_PREFIX="termux-boot-app_$APK_VERSION_TAG"
4747
4848
# Used by upload step later
4949
echo "APK_DIR_PATH=$APK_DIR_PATH" >> $GITHUB_ENV

.github/workflows/github_release_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
4040
APK_DIR_PATH="./app/build/outputs/apk/debug"
4141
APK_VERSION_TAG="$RELEASE_VERSION_NAME+github.debug"
42-
APK_BASENAME_PREFIX="termux-boot_$APK_VERSION_TAG"
42+
APK_BASENAME_PREFIX="termux-boot-app_$APK_VERSION_TAG"
4343
4444
echo "Building APK file for '$RELEASE_VERSION_NAME' release with '$APK_VERSION_TAG' tag"
4545
export TERMUX_BOOT_APP_BUILD__APK_VERSION_TAG="$APK_VERSION_TAG" # Used by app/build.gradle

app/build.gradle

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,8 @@ android {
4747

4848
applicationVariants.all { variant ->
4949
variant.outputs.all { output ->
50-
if (variant.buildType.name == "debug") {
51-
outputFileName = new File("termux-boot_" + (apkVersionTag ? apkVersionTag : "debug") + ".apk")
52-
} else if (variant.buildType.name == "release") {
53-
outputFileName = new File("termux-boot_" + (apkVersionTag ? apkVersionTag : "release") + ".apk")
54-
}
50+
outputFileName = new File("termux-boot-app_" +
51+
(apkVersionTag ? apkVersionTag : "v" + versionName + "+" + variant.buildType.name) + ".apk")
5552
}
5653
}
5754
}

0 commit comments

Comments
 (0)