Skip to content

Commit 96c5d1e

Browse files
Changed!: Add -app suffix to app name and add version name in APKs generated
1 parent 07cef6c commit 96c5d1e

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
@@ -36,7 +36,7 @@ jobs:
3636
3737
APK_DIR_PATH="./app/build/outputs/apk/debug"
3838
APK_VERSION_TAG="$RELEASE_VERSION_NAME.github.debug" # Note the ".", GITHUB_SHA will already have "+" before it
39-
APK_BASENAME_PREFIX="termux-widget_$APK_VERSION_TAG"
39+
APK_BASENAME_PREFIX="termux-widget-app_$APK_VERSION_TAG"
4040
4141
# Used by upload step later
4242
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
@@ -35,7 +35,7 @@ jobs:
3535
3636
APK_DIR_PATH="./app/build/outputs/apk/debug"
3737
APK_VERSION_TAG="$RELEASE_VERSION_NAME+github.debug"
38-
APK_BASENAME_PREFIX="termux-widget_$APK_VERSION_TAG"
38+
APK_BASENAME_PREFIX="termux-widget-app_$APK_VERSION_TAG"
3939
4040
echo "Building APK file for '$RELEASE_VERSION_NAME' release with '$APK_VERSION_TAG' tag"
4141
export TERMUX_WIDGET_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
@@ -49,11 +49,8 @@ android {
4949

5050
applicationVariants.all { variant ->
5151
variant.outputs.all { output ->
52-
if (variant.buildType.name == "debug") {
53-
outputFileName = new File("termux-widget_" + (apkVersionTag ? apkVersionTag : "debug") + ".apk")
54-
} else if (variant.buildType.name == "release") {
55-
outputFileName = new File("termux-widget_" + (apkVersionTag ? apkVersionTag : "release") + ".apk")
56-
}
52+
outputFileName = new File("termux-widget-app_" +
53+
(apkVersionTag ? apkVersionTag : "v" + versionName + "+" + variant.buildType.name) + ".apk")
5754
}
5855
}
5956

0 commit comments

Comments
 (0)