From 460f8520a86b7cf50809fb665e0205f80f6ddeb5 Mon Sep 17 00:00:00 2001 From: Walid Kayhal <3347810+waliid@users.noreply.github.com> Date: Thu, 21 Nov 2024 18:09:01 +0100 Subject: [PATCH] Add a script to configure private stuff --- Scripts/configure-environment.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 Scripts/configure-environment.sh 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