Skip to content

Commit

Permalink
SNOW-1055755: debug darwin package build process
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-mraba committed Aug 20, 2024
1 parent 5580946 commit ba689b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/packaging/build_darwin_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@ chmod +x ${APP_NAME}/Contents/MacOS/SnowflakeCLI.bash

ENTITLEMENTS=$PACKAGING_DIR/macos/SnowflakeCLI_entitlements.plist
code_sign() {
loginfo "Code signing $1"
codesign --force --deep --timestamp --entitlements $ENTITLEMENTS --options=runtime --sign "Developer ID Application: Snowflake Computing INC. (W4NT6CRQ7U)" $1
}
code_sign_validate() {
loginfo "Validating code signing for $1"
codesign -dvvv --force $1
}

Expand Down Expand Up @@ -122,7 +124,7 @@ if ! grep -q -E "^$SNOWFLAKE_CLI_COMMENT" $SNOWFLAKE_CLI_LOGIN_SHELL; then
fi
POSTINSTALL

chmod +x $DIST_DIR/scripts/positnstall.sh
chmod +x $DIST_DIR/scripts/postinstall
pkgbuild \
--identifier net.snowflake.snowflake-cli \
--install-location '/Applications' \
Expand Down

0 comments on commit ba689b4

Please sign in to comment.