diff --git a/bin/dfx-sns-wasm-download b/bin/dfx-sns-wasm-download index d180cc1b..1bf1c890 100755 --- a/bin/dfx-sns-wasm-download +++ b/bin/dfx-sns-wasm-download @@ -16,5 +16,5 @@ export DFX_IC_COMMIT if [[ "${1:-wasms}" == "wasms" ]]; then mkdir -p wasms - jq <"$SOURCE_DIR/sns_dfx.json" -r '.canisters | to_entries | map({url: "https://download.dfinity.systems/ic/\(env.DFX_IC_COMMIT)/canisters/\(.value.wasm).gz", file: "wasms/\(.value.wasm)"}) | map ("curl -L --fail \(.url) | gunzip > \(.file)") | .[]' | xargs -I{} bash -xc '{}' + jq <"$SOURCE_DIR/sns_dfx.json" -r '.canisters | to_entries | map({url: "https://download.dfinity.systems/ic/\(env.DFX_IC_COMMIT)/canisters/\(.value.wasm)", file: "wasms/\(.value.wasm)"}) | map ("curl -L --fail \(.url) > \(.file)") | .[]' | xargs -I{} bash -xc '{}' fi diff --git a/bin/sns_dfx.json b/bin/sns_dfx.json index 27fb4391..aa770c40 100644 --- a/bin/sns_dfx.json +++ b/bin/sns_dfx.json @@ -5,7 +5,7 @@ "nns_sns_wasm_name": "governance" }, "build": "", - "wasm": "sns-governance-canister_test.wasm", + "wasm": "sns-governance-canister_test.wasm.gz", "candid": "../governance/canister/governance.did", "type": "custom" }, @@ -14,7 +14,7 @@ "nns_sns_wasm_name": "index" }, "build": "", - "wasm": "ic-icrc1-index-ng.wasm", + "wasm": "ic-icrc1-index-ng.wasm.gz", "candid": "../../rosetta-api/icrc1/index-ng/index-ng.did", "type": "custom" }, @@ -23,7 +23,7 @@ "nns_sns_wasm_name": "ledger" }, "build": "", - "wasm": "ic-icrc1-ledger.wasm", + "wasm": "ic-icrc1-ledger.wasm.gz", "candid": "../../rosetta-api/icrc1/ledger/icrc1.did", "type": "custom" }, @@ -32,7 +32,7 @@ "nns_sns_wasm_name": "archive" }, "build": "", - "wasm": "ic-icrc1-archive.wasm", + "wasm": "ic-icrc1-archive.wasm.gz", "candid": "../swap/canister/swap.did", "type": "custom" }, @@ -41,7 +41,7 @@ "nns_sns_wasm_name": "root" }, "build": "", - "wasm": "sns-root-canister.wasm", + "wasm": "sns-root-canister.wasm.gz", "candid": "../root/canister/root.did", "type": "custom" }, @@ -50,7 +50,7 @@ "nns_sns_wasm_name": "swap" }, "build": "", - "wasm": "sns-swap-canister.wasm", + "wasm": "sns-swap-canister.wasm.gz", "candid": "../swap/canister/swap.did", "type": "custom" }