Skip to content

Commit

Permalink
Merge branch 'jason/misc-install-ic-admin-mac' into 'master'
Browse files Browse the repository at this point in the history
chore(release): Install ic-admin for Mac in the scripts for releases

Tested that `cmd.sh install_binary ic-admin  ${GIT_HASH} ${TOOLS_DIR}` works on my mac. 

See merge request dfinity-lab/public/ic!19988
  • Loading branch information
jasonz-dfinity committed Jun 28, 2024
2 parents 3b0dd1b + 6240c33 commit 842953b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,7 @@ submit_insert_upgrade_path_proposal_mainnet() {
if ! is_variable_set IC_ADMIN; then
if [ ! -f "$MY_DOWNLOAD_DIR/ic-admin" ]; then
PREVIOUS_VERSION=$(extract_previous_version "$PROPOSAL_FILE")

if [ $(uname -o) != "Darwin" ]; then
install_binary ic-admin "$PREVIOUS_VERSION" "$MY_DOWNLOAD_DIR"
else
echo "IC_ADMIN must be set for Mac, cannot download."
return 1
fi
install_binary ic-admin "$PREVIOUS_VERSION" "$MY_DOWNLOAD_DIR"
fi
IC_ADMIN=$MY_DOWNLOAD_DIR/ic-admin
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ submit_nns_upgrade_proposal_mainnet() {
if ! is_variable_set IC_ADMIN; then
if [ ! -f "$MY_DOWNLOAD_DIR/ic-admin" ]; then
PREVIOUS_VERSION=$(extract_previous_version "$PROPOSAL_FILE")

install_binary ic-admin "$PREVIOUS_VERSION" "$MY_DOWNLOAD_DIR"
fi
IC_ADMIN=$MY_DOWNLOAD_DIR/ic-admin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,7 @@ submit_nns_publish_sns_wasm_proposal_mainnet() {
if ! is_variable_set IC_ADMIN; then
if [ ! -f "$MY_DOWNLOAD_DIR/ic-admin" ]; then
PREVIOUS_VERSION=$(extract_previous_version "$PROPOSAL_FILE")

if [ $(uname -o) != "Darwin" ]; then
install_binary ic-admin "$PREVIOUS_VERSION" "$MY_DOWNLOAD_DIR"
else
echo "IC_ADMIN must be set for Mac, cannot download."
return 1
fi
install_binary ic-admin "$PREVIOUS_VERSION" "$MY_DOWNLOAD_DIR"
fi
IC_ADMIN=$MY_DOWNLOAD_DIR/ic-admin
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,7 @@ submit_sale_upgrade_proposal_mainnet() {
if ! is_variable_set IC_ADMIN; then
if [ ! -f "$MY_DOWNLOAD_DIR/ic-admin" ]; then
PREVIOUS_VERSION=$(extract_previous_version "$PROPOSAL_FILE")

if [ $(uname -o) != "Darwin" ]; then
install_binary ic-admin "$PREVIOUS_VERSION" "$MY_DOWNLOAD_DIR"
else
echo "IC_ADMIN must be set for Mac, cannot download."
exit 1
fi
install_binary ic-admin "$PREVIOUS_VERSION" "$MY_DOWNLOAD_DIR"
fi
IC_ADMIN=$MY_DOWNLOAD_DIR/ic-admin
fi
Expand Down

0 comments on commit 842953b

Please sign in to comment.