2024-10-02 20:09:35 -07:00
|
|
|
_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}}
|
2024-10-04 03:41:30 -07:00
|
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|