fix(release): correct APK path structure
This commit is contained in:
1 parent
28a8a4e6cc
commit
3911bd07f2
1 file changed
+7
-5
@@ -99,11 +99,13 @@ jobs:
|
|||||||
if [ -z "$RELEASE_ID" ]; then echo "ERROR: Failed to get release ID"; exit 1; fi
|
if [ -z "$RELEASE_ID" ]; then echo "ERROR: Failed to get release ID"; exit 1; fi
|
||||||
|
|
||||||
for APK in "$APK_DEBUG" "$APK_RELEASE"; do
|
for APK in "$APK_DEBUG" "$APK_RELEASE"; do
|
||||||
APK_PATH="app/build/outputs/apk/*/release/$APK"
|
if [ -f "app/build/outputs/apk/release/$APK" ]; then
|
||||||
APK_PATH=$(echo "$APK_PATH" | tr '*' '?')
|
APK_PATH="app/build/outputs/apk/release/$APK"
|
||||||
if [ ! -f "$APK_PATH" ]; then
|
elif [ -f "app/build/outputs/apk/debug/$APK" ]; then
|
||||||
APK_PATH="app/build/outputs/apk/*/*/$APK"
|
APK_PATH="app/build/outputs/apk/debug/$APK"
|
||||||
APK_PATH=$(echo "$APK_PATH" | tr '*' '?')
|
else
|
||||||
|
echo "ERROR: APK not found: $APK"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ ! -f "$APK_PATH" ]; then
|
if [ ! -f "$APK_PATH" ]; then
|
||||||
echo "ERROR: APK not found: $APK"
|
echo "ERROR: APK not found: $APK"
|
||||||
|
|||||||
Reference in new issue
Block a user