commit 921c0f1118e5ccea0a9f9d79ced92b99f05077ea
parent 987e43d0cac59dc1ce13fb4c3307c3ccc6968372
Author: William Casarin <jb55@jb55.com>
Date: Wed, 27 Nov 2024 15:18:20 -0800
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>
Diffstat:
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git 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