Skip to content

Commit

Permalink
Add a script to configure private stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
waliid committed Nov 21, 2024
1 parent a636da3 commit 460f852
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Scripts/configure-environment.sh
Original file line number Diff line number Diff line change
@@ -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 <apple_api_key_p8> <apple_account_info_b64>"
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

0 comments on commit 460f852

Please sign in to comment.