mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-19 09:34:19 +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
|
exit 1
|
||||||
fi
|
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
|
# 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)
|
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
|
for VAR in "${REQUIRED_VARS[@]}"; do
|
||||||
if [ -z "${!VAR:-}" ]; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user