android-build-apk-copy
Build TermLink Android debug APK only, then copy the generated APK to E:\\project\\TermLink. Use when you only need a fresh APK artifact for distribution/testing without install or adb debug steps.
SKILL.mdskills/android-build-apk-copy/SKILL.md
GitHubAndroid Build APK Copy
Use this skill when you only need to compile APK and copy artifact.
Run commands from repository root:
E:\coding\TermLink
Quick Start
powershell -ExecutionPolicy Bypass -File ./skills/android-build-apk-copy/scripts/build-apk-and-copy.ps1
Behavior
- Run
npm run android:sync. - Remove any existing
android/app/build/outputs/apk/debug/app-debug.apk. - Run
android\\gradlew.bat clean :app:assembleDebug --no-build-cache --rerun-tasksto force a fresh APK build. - Copy
android/app/build/outputs/apk/debug/app-debug.apktoE:\project\TermLink. - Default copied filename is auto-renamed with app version and build timestamp, for example
TermLink-v1.0-debug-20260328-021530.apk.
Optional Parameters
powershell -ExecutionPolicy Bypass -File ./skills/android-build-apk-copy/scripts/build-apk-and-copy.ps1 -OutDir E:\project\TermLink -OutName TermLink-custom.apk -JdkHome D:\ProgramCode\openjdk\jdk-21
Rules
- This skill does not install APK to device.
- Keep default output directory as
E:\project\TermLink. - Build requires JDK 21 compatible environment.
- Unless
-OutNameis explicitly passed, copied APK name must include version and timestamp. - This skill must force a fresh APK build instead of reusing an incremental Gradle output.