Files
flutter/fastlane/metadata/envfiles/decrypt_secrets.sh
Roland Geider b10e698913 Refactor the way the releases are built
This workflow is not manually triggered and can create automatically the appropriate
tag. The build number is not increase to the next multiple of ten, to stay in sync with
the iOS releases, which seem to cause more trouble and often need reuploads.

The individual steps have been moved out to their own files, for better readability.

We also now build the app for all supported platforms.
2025-04-05 14:54:39 +02:00

25 lines
788 B
Bash
Executable File

#!/bin/sh
# --batch to prevent interactive command
# --yes to assume "yes" for questions
# To encrypt a new version of the keys:
# gpg -c filename.json
if [ -n "$DECRYPTKEY_PLAYSTORE" ]; then
echo "decrypting playstore API keys"
gpg --quiet --batch --yes --decrypt --passphrase="$DECRYPTKEY_PLAYSTORE" \
--output ./playstore.json playstore.json.gpg
fi
if [ -n "$DECRYPTKEY_PROPERTIES" ]; then
echo "decrypting key.properties"
gpg --quiet --batch --yes --decrypt --passphrase="$DECRYPTKEY_PROPERTIES" \
--output ./key.properties key.properties.gpg
fi
if [ -n "$DECRYPTKEY_PLAYSTORE_SIGNING_KEY" ]; then
echo "decrypting playstore signing keys"
gpg --quiet --batch --yes --decrypt --passphrase="$DECRYPTKEY_PLAYSTORE_SIGNING_KEY" \
--output ./keys.jks keys.jks.gpg
fi