-
-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathgenerate-release
More file actions
executable file
·33 lines (25 loc) · 756 Bytes
/
generate-release
File metadata and controls
executable file
·33 lines (25 loc) · 756 Bytes
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
28
29
30
31
32
33
#!/bin/bash
[[ $# -ge 1 ]] || exit 1
set -o errexit -o nounset -o pipefail
KEYSTORE=$PWD/../vanadium.keystore
APKSIGNER=$PWD/third_party/android_sdk/public/build-tools/36.1.0/apksigner
readonly APPS=(
TrichromeChrome
TrichromeLibrary
TrichromeWebView
VanadiumConfig
)
read -p "Enter keystore passphrase: " -s keystore_pass
echo
for d in "$@"; do
cd "$d/Default/apks"
rm -rf release
mkdir release
cd release
for app in ${APPS[@]}; do
input=$(echo -n ../${app}*.apk)
[[ ! -f $input ]] && echo "missing ${app}" && continue
$APKSIGNER sign --ks $KEYSTORE --ks-pass file:/dev/stdin --ks-key-alias vanadium --in $input --out $app.apk <<< $keystore_pass || true
done
cd ../../../..
done