diff --git a/Scripts/configure-environment.sh b/Scripts/configure-environment.sh new file mode 100755 index 00000000..9b2f06a5 --- /dev/null +++ b/Scripts/configure-environment.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +apple_api_key_p8="$1" +apple_account_info_b64="$2" + +if [[ -z $apple_api_key_p8 || -z $apple_account_info_b64 ]] +then + echo "[!] Usage: $0 " + exit 1 +fi + +mkdir -p ../Configuration +echo "$apple_account_info_b64" | base64 --decode > ../Configuration/.env +echo "$apple_api_key_p8" > ../Configuration/AppStoreConnect_API_Key.p8