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
tmzullinger committed Jun 23, 2024
1 parent 56f3eda commit a6d7176
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/attach_debug_apk_to_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
APK_DIR_PATH="./app/build/outputs/apk/debug"
APK_VERSION_TAG="$RELEASE_VERSION_NAME+github-debug"
APK_BASENAME_PREFIX="termux-widget_$APK_VERSION_TAG"
APK_BASENAME_PREFIX="termux-widget-app_$APK_VERSION_TAG"
echo "Building APK for '$RELEASE_VERSION_NAME' release"
export TERMUX_WIDGET_APK_VERSION_TAG="$APK_VERSION_TAG" # Used by app/build.gradle
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/debug_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,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-widget_$APK_VERSION_TAG"
APK_BASENAME_PREFIX="termux-widget-app_$APK_VERSION_TAG"
# Used by attachment steps later
echo "APK_DIR_PATH=$APK_DIR_PATH" >> $GITHUB_ENV
Expand Down
7 changes: 2 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,8 @@ android {

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

Expand Down

0 comments on commit a6d7176

Please sign in to comment.