Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@

= UNRELEASED

== BUILD PROCESS

The build process temporarily obtains the icx-proxy binary from the dfx 0.10.0 release binary.
Once icx-proxy releases are once again available on github, we will revert this change.
Do not release dfx until this is reverted.

== DFX

=== fix: HSMs are once again supported on Linux
Expand Down
24 changes: 23 additions & 1 deletion scripts/prepare-dfx-assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,30 @@ download_ic_ref() {
chmod 0500 "$BINARY_CACHE_TEMP_DIR/ic-ref"
}

# This is a temporary hack while icx-proxy releases are not available from github releases.
# To be reverted: https://dfinity.atlassian.net/browse/SDK-498
get_icx_proxy_from_dfx_release() {
case "$OSTYPE" in
darwin*)
URL="https://github.com/dfinity/sdk/releases/download/0.10.0/dfx-0.10.0-x86_64-darwin.tar.gz"
SHA256="7a4d49eeb004e9c5c2ac20891b95564cbe728f0ee7a9fa8579dc4e0022339d79"
;;
linux*)
URL="https://github.com/dfinity/sdk/releases/download/0.10.0/dfx-0.10.0-x86_64-linux.tar.gz"
SHA256="f6ae43098b676da87503e627cc6f8820d0a0ff9f9beac0da2cc884598216b996"
;;
*) echo "Unsupported OS type: $OSTYPE" ; exit 1;;
esac
download_url_and_check_sha "$URL" "$SHA256" "$DOWNLOAD_TEMP_DIR/dfx.tar.gz"
tar -xkvf "$DOWNLOAD_TEMP_DIR/dfx.tar.gz" -C "$DOWNLOAD_TEMP_DIR"
DFX_CACHE_ROOT="$DOWNLOAD_TEMP_DIR/dfx-cache" "$DOWNLOAD_TEMP_DIR/dfx" cache install
cp "$DOWNLOAD_TEMP_DIR/dfx-cache/.cache/dfinity/versions/0.10.0/icx-proxy" "$BINARY_CACHE_TEMP_DIR"
}

download_icx_proxy() {
download_tarball "icx-proxy"
# download_tarball "icx-proxy"
get_icx_proxy_from_dfx_release

chmod 0500 "$BINARY_CACHE_TEMP_DIR/icx-proxy"
}

Expand Down