mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-18 09:04:21 +01:00
macos: remove macos_build_secrets.sh as build requirement
Users can source this themselves, or use something like direnv to automatically load them when you `cd` into the project. In the case of github actions, these will be set in the environment. Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -13,21 +13,11 @@ if [ "$CURRENT_DIR" != "$REQUIRED_DIR" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Load environment variables from macos_build_secrets.sh
|
||||
SECRETS_FILE="./scripts/macos_build_secrets.sh"
|
||||
if [ ! -f "$SECRETS_FILE" ]; then
|
||||
echo "Error: Secrets file '$SECRETS_FILE' not found. Please create it with the required variables." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Source the secrets
|
||||
source "$SECRETS_FILE"
|
||||
|
||||
# Ensure all required variables are set
|
||||
REQUIRED_VARS=(NOTEDECK_APPLE_RELEASE_CERT_ID NOTEDECK_RELEASE_APPLE_ID NOTEDECK_APPLE_APP_SPECIFIC_PW NOTEDECK_APPLE_TEAM_ID)
|
||||
for VAR in "${REQUIRED_VARS[@]}"; do
|
||||
if [ -z "${!VAR:-}" ]; then
|
||||
echo "Error: Required variable '$VAR' is not set in $SECRETS_FILE." >&2
|
||||
echo "Error: Required variable '$VAR' is not set." >&2
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user