-
Notifications
You must be signed in to change notification settings - Fork 0
/
android.sh
executable file
·27 lines (20 loc) · 986 Bytes
/
android.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#! /bin/bash
echo "Setting up Environment Variables"
export ANDROID_HOME=/run/media/james/tauri/Android
export NDK_HOME=/run/media/james/tauri/Android/ndk/27.0.11718014
export JAVA_HOME=/run/media/james/tauri/Studio/android-studio/jbr
npm install
npm update
npm run tauri icon Bible.png
echo -e "\n\nInitializing android project"
npm run tauri android init
npm run tauri icon Bible.png
echo -e "\n\nBuilding android project"
npm run tauri android build
echo -e "\n\nGenerating keypair"
keytool -genkeypair -v -keystore rosary.keystore -alias rosary -keyalg RSA -keysize 2048 -validity 10000
echo -e "\n\nRunning zipalign"
/run/media/james/tauri/Android/build-tools/34.0.0/zipalign -f -v 4 src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release-unsigned.apk Rosary.apk
echo -e "\n\nSigning APK"
/run/media/james/tauri/Android/build-tools/34.0.0/apksigner sign --ks rosary.keystore --ks-key-alias rosary Rosary.apk
echo -e "\n\nBuilding linux bundles"