From 921c0f1118e5ccea0a9f9d79ced92b99f05077ea Mon Sep 17 00:00:00 2001 From: William Casarin Date: Wed, 27 Nov 2024 15:18:20 -0800 Subject: [PATCH] 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 --- scripts/macos_build.sh | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/scripts/macos_build.sh b/scripts/macos_build.sh index b070b66..5a63d5b 100755 --- a/scripts/macos_build.sh +++ b/scripts/macos_build.sh @@ -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