|
@ -28,12 +28,17 @@ if [[ -n "$1" && "$1" == "release" ]] ; then |
|
|
export P4A_RELEASE_KEYSTORE_PASSWD=$password |
|
|
export P4A_RELEASE_KEYSTORE_PASSWD=$password |
|
|
export P4A_RELEASE_KEYALIAS_PASSWD=$password |
|
|
export P4A_RELEASE_KEYALIAS_PASSWD=$password |
|
|
export P4A_RELEASE_KEYALIAS=electrum |
|
|
export P4A_RELEASE_KEYALIAS=electrum |
|
|
|
|
|
# build two apks |
|
|
|
|
|
export APP_ANDROID_ARCH=armeabi-v7a |
|
|
|
|
|
make release |
|
|
|
|
|
export APP_ANDROID_ARCH=arm64-v8a |
|
|
make release |
|
|
make release |
|
|
else |
|
|
else |
|
|
export P4A_DEBUG_KEYSTORE="$CONTRIB"/android_debug.keystore |
|
|
export P4A_DEBUG_KEYSTORE="$CONTRIB"/android_debug.keystore |
|
|
export P4A_DEBUG_KEYSTORE_PASSWD=unsafepassword |
|
|
export P4A_DEBUG_KEYSTORE_PASSWD=unsafepassword |
|
|
export P4A_DEBUG_KEYALIAS_PASSWD=unsafepassword |
|
|
export P4A_DEBUG_KEYALIAS_PASSWD=unsafepassword |
|
|
export P4A_DEBUG_KEYALIAS=electrum |
|
|
export P4A_DEBUG_KEYALIAS=electrum |
|
|
|
|
|
# create keystore if needed |
|
|
if [ ! -f "$P4A_DEBUG_KEYSTORE" ]; then |
|
|
if [ ! -f "$P4A_DEBUG_KEYSTORE" ]; then |
|
|
keytool -genkey -v -keystore "$CONTRIB"/android_debug.keystore \ |
|
|
keytool -genkey -v -keystore "$CONTRIB"/android_debug.keystore \ |
|
|
-alias "$P4A_DEBUG_KEYALIAS" -keyalg RSA -keysize 2048 -validity 10000 \ |
|
|
-alias "$P4A_DEBUG_KEYALIAS" -keyalg RSA -keysize 2048 -validity 10000 \ |
|
@ -41,6 +46,10 @@ else |
|
|
-storepass "$P4A_DEBUG_KEYSTORE_PASSWD" \ |
|
|
-storepass "$P4A_DEBUG_KEYSTORE_PASSWD" \ |
|
|
-keypass "$P4A_DEBUG_KEYALIAS_PASSWD" |
|
|
-keypass "$P4A_DEBUG_KEYALIAS_PASSWD" |
|
|
fi |
|
|
fi |
|
|
|
|
|
# build two apks |
|
|
|
|
|
export APP_ANDROID_ARCH=armeabi-v7a |
|
|
|
|
|
make apk |
|
|
|
|
|
export APP_ANDROID_ARCH=arm64-v8a |
|
|
make apk |
|
|
make apk |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|