23 lines
704 B
Makefile
23 lines
704 B
Makefile
_default:
|
|
just --list
|
|
|
|
android-dev:
|
|
@just run-android cargo tauri android dev
|
|
|
|
# Run any command with the android arguments
|
|
run-android *args:
|
|
#!/usr/bin/env bash
|
|
export JAVA_HOME=/opt/android-studio/jbr
|
|
export ANDROID_HOME="$HOME/Android/Sdk"
|
|
export NDK_HOME="$ANDROID_HOME/ndk/28.0.12433566"
|
|
{{args}}
|
|
|
|
|
|
# See https://tauri.app/distribute/sign/android/
|
|
[doc: "Sign Android APK"]
|
|
prepare-sign-apk password="test-password":
|
|
echo "password={{password}}" > ./src-tauri/gen/android/keystore.properties
|
|
echo "keyAlias=upload" >> ./src-tauri/gen/android/keystore.properties
|
|
echo "storeFile=/home/greg/upload-keystore.jks" >> ./src-tauri/gen/android/keystore.properties
|
|
|