mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
App | CI | Workflow for building release apks and aabs (#2387)
This commit is contained in:
parent
35af450dfa
commit
7f42a63b6f
10 changed files with 122 additions and 25 deletions
BIN
scripts/release/app-release.gpg
Normal file
BIN
scripts/release/app-release.gpg
Normal file
Binary file not shown.
7
scripts/release/clean-secrets.sh
Executable file
7
scripts/release/clean-secrets.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Delete release key store settings
|
||||
rm -f signing.properties
|
||||
|
||||
# Delete release key store
|
||||
rm -f scripts/release/app-release.jks
|
14
scripts/release/decrypt-secrets.sh
Executable file
14
scripts/release/decrypt-secrets.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
decrypt() {
|
||||
PASSPHRASE=$1
|
||||
INPUT=$2
|
||||
OUTPUT=$3
|
||||
gpg --quiet --batch --yes --decrypt --passphrase="$PASSPHRASE" --output $OUTPUT $INPUT
|
||||
}
|
||||
|
||||
if [[ ! -z "$ENCRYPT_KEY" ]]; then
|
||||
decrypt ${ENCRYPT_KEY} scripts/release/app-release.gpg scripts/release/app-release.jks
|
||||
else
|
||||
echo "ENCRYPT_KEY is empty"
|
||||
fi
|
14
scripts/release/encrypt-secrets.sh
Executable file
14
scripts/release/encrypt-secrets.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
encrypt() {
|
||||
PASSPHRASE=$1
|
||||
INPUT=$2
|
||||
OUTPUT=$3
|
||||
gpg --batch --yes --passphrase="$PASSPHRASE" --cipher-algo AES256 --symmetric --output $OUTPUT $INPUT
|
||||
}
|
||||
|
||||
if [[ ! -z "$ENCRYPT_KEY" ]]; then
|
||||
encrypt ${ENCRYPT_KEY} scripts/release/app-release.jks scripts/release/app-release.gpg
|
||||
else
|
||||
echo "ENCRYPT_KEY is empty"
|
||||
fi
|
12
scripts/release/setup-store.sh
Executable file
12
scripts/release/setup-store.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
KEY_ALIAS=$1
|
||||
KEY_PWD=$2
|
||||
STORE_PWD=$3
|
||||
|
||||
rm -rf signing.properties
|
||||
touch signing.properties
|
||||
|
||||
echo "RELEASE_KEY_ALIAS=$KEY_ALIAS" >> signing.properties
|
||||
echo "RELEASE_KEY_PASSWORD=$KEY_PWD" >> signing.properties
|
||||
echo "RELEASE_STORE_PASSWORD=$STORE_PWD" >> signing.properties
|
Loading…
Add table
Add a link
Reference in a new issue