fix(release): use correct APK filenames (app-debug.apk, app-release.apk)
This commit is contained in:
1 parent
3c8d01cca9
commit
594525ed10
1 file changed
+6
-5
@@ -104,12 +104,13 @@ jobs:
|
||||
if [ -z "$RELEASE_ID" ]; then echo "ERROR: Failed to get release ID"; exit 1; fi
|
||||
|
||||
for APK in "$APK_DEBUG" "$APK_RELEASE"; do
|
||||
if [ -f "app/build/outputs/apk/release/$APK" ]; then
|
||||
APK_PATH="app/build/outputs/apk/release/$APK"
|
||||
elif [ -f "app/build/outputs/apk/debug/$APK" ]; then
|
||||
APK_PATH="app/build/outputs/apk/debug/$APK"
|
||||
if echo "$APK" | grep -q "debug"; then
|
||||
APK_PATH="app/build/outputs/apk/debug/app-debug.apk"
|
||||
else
|
||||
echo "ERROR: APK not found: $APK"
|
||||
APK_PATH="app/build/outputs/apk/release/app-release.apk"
|
||||
fi
|
||||
if [ ! -f "$APK_PATH" ]; then
|
||||
echo "ERROR: APK not found: $APK_PATH"
|
||||
exit 1
|
||||
fi
|
||||
if [ ! -f "$APK_PATH" ]; then
|
||||
|
||||
Reference in new issue
Block a user