Fix incorrect output path
This commit is contained in:
parent
0558727ebe
commit
67a09519c4
10
patch.sh
10
patch.sh
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
# Prepare
|
# Prepare
|
||||||
echo ":: Downloading Tusky"
|
echo ":: Downloading Tusky"
|
||||||
|
@ -24,18 +26,20 @@ cd Tusky/
|
||||||
# keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
|
# keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
|
||||||
#
|
#
|
||||||
echo ":: Signing app"
|
echo ":: Signing app"
|
||||||
export APKSIGNER=$(find $ANDROID_SDK_ROOT -type f -executable -name apksigner)
|
APKSIGNER=$(find $ANDROID_SDK_ROOT -type f -executable -name apksigner)
|
||||||
read -p "Enter keystore password: " -s KEYSTORE_PWD
|
read -p "Enter keystore password: " -s KEYSTORE_PWD
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
mkdir -p out
|
mkdir -p out
|
||||||
|
|
||||||
|
UNSIGNED_PATH=$(find Tusky/app/build/outputs/apk/blue/release/ -type f -name 'Tusky_*_blue_release.apk')
|
||||||
|
|
||||||
$APKSIGNER sign \
|
$APKSIGNER sign \
|
||||||
--ks agatha.keystore \
|
--ks agatha.keystore \
|
||||||
--ks-key-alias "Agatha" \
|
--ks-key-alias "Agatha" \
|
||||||
--ks-pass pass:$KEYSTORE_PWD \
|
--ks-pass pass:$KEYSTORE_PWD \
|
||||||
--key-pass pass:$KEYSTORE_PWD \
|
--key-pass pass:$KEYSTORE_PWD \
|
||||||
--in Tusky/app/build/outputs/apk/blue/release/app-blue-release-unsigned.apk \
|
--in $UNSIGNED_PATH \
|
||||||
--out "out/tusky-blue-$(date +'%F-%T').apk"
|
--out "out/tusky-blue-$(date +'%F-%T').apk"
|
||||||
|
|
||||||
SUCCESS=$?
|
SUCCESS=$?
|
||||||
|
|
Loading…
Reference in New Issue