From 332a74bcf71cbabdd8c76ff219d10dfab0045669 Mon Sep 17 00:00:00 2001 From: Jiongxuan Zhang Date: Mon, 7 Oct 2024 23:56:25 +0800 Subject: [PATCH] feat(android): add scripts to install APKs to device - Added install:android to install debug APK, install:android:prod to install release APK to connected device --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index c6905d5e4cb..544d49043e9 100644 --- a/package.json +++ b/package.json @@ -85,6 +85,8 @@ "dist:mac:mas:x64": "cp tools/mac-profiles/mas.provisionprofile embedded.provisionprofile; electron-builder --mac mas --config=build/electron-builder.mas.yaml --x64", "dist:android": "npm run buildFrontend:stageWeb:unminified && npm run sync:android && npm run assemble:android:stage && echo 'Staging Android APK generated at android/app/build/outputs/apk/debug/'", "dist:android:prod": "npm run buildFrontend:prodWeb && npm run sync:android && npm run assemble:android:prod && echo 'Production Android APK generated at android/app/build/outputs/apk/release/'", + "install:android": "adb install -r android/app/build/outputs/apk/fdroid/debug/app-fdroid-debug.apk && echo 'Staging APK installed successfully.'", + "install:android:prod": "adb install -r android/app/build/outputs/apk/fdroid/release/app-fdroid-release.apk && echo 'Production APK installed successfully.'", "release": "npm run release.changelog && npm run dist", "release.changelog": "conventional-changelog -i CHANGELOG.md -s -p angular", "version": "npm run prebuild && npm run release.changelog && git add -A",