Skip to content

Commit df1426c

Browse files
authored
Update mobile_build.yml
1 parent d175f96 commit df1426c

1 file changed

Lines changed: 10 additions & 13 deletions

File tree

.github/workflows/mobile_build.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -67,31 +67,28 @@ jobs:
6767
cd android
6868
# Ensure the wrapper is executable
6969
chmod +x gradlew
70-
# Build a release APK; adjust the task if you need debug (assembleDebug)
71-
./gradlew assembleRelease
70+
# Build a debug APK instead of release. Debug builds are automatically signed
71+
# with the debug keystore and can be installed on devices/emulators without
72+
# additional signing configuration. If you later add a signingConfig for
73+
# release builds, you can switch back to assembleRelease.
74+
./gradlew assembleDebug
7275
73-
- name: Package Android APK and assets
76+
- name: Prepare Android APK for upload
7477
run: |
7578
set -e
76-
# Create a staging directory for packaging
77-
mkdir -p packaged
78-
# Find the generated APK (release build) and copy it into packaged
79+
# Find the generated APK (debug build) and copy it to a predictable location
7980
APK_PATH=$(find android/app/build/outputs -type f -name "*.apk" | head -n 1 || true)
8081
if [ -n "$APK_PATH" ]; then
81-
cp "$APK_PATH" packaged/mw_recreation.apk
82+
cp "$APK_PATH" mw_recreation.apk
8283
else
8384
echo "No APK found; build may have failed" && exit 1
8485
fi
85-
# Copy the assets directory for convenience (the APK already includes them)
86-
cp -r assets packaged/assets
87-
# Create a zip archive containing the APK and assets at the root of the zip
88-
(cd packaged && zip -r ../android-latest.zip .)
8986
90-
- name: Upload Android package
87+
- name: Upload Android APK
9188
uses: actions/upload-artifact@v4
9289
with:
9390
name: android-latest
94-
path: android-latest.zip
91+
path: mw_recreation.apk
9592

9693
# iOS build job. Runs on a macOS runner because iOS compilation requires
9794
# Xcode. It configures CMake to generate an Xcode project targeting

0 commit comments

Comments
 (0)