1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00
anytype-kotlin/scripts/release/decrypt-secrets.sh

14 lines
326 B
Bash
Executable file

#!/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