Skip to content

Commit

Permalink
fix: build reproducibility (#708)
Browse files Browse the repository at this point in the history
* fix: backend release reproducibility

Signed-off-by: David Dal Busco <[email protected]>

* feat: reproducibility

Signed-off-by: David Dal Busco <[email protected]>

---------

Signed-off-by: David Dal Busco <[email protected]>
  • Loading branch information
peterpeterparker authored Aug 26, 2024
1 parent 1c4b209 commit 3b4dfe0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/build
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function build_canister() {
ic-wasm "$canister.wasm" -o "$canister.wasm" metadata supported_certificate_versions -d "1,2" -v public
fi

gzip "./$canister.wasm"
gzip --no-name --force "./$canister.wasm"
fi
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/cargo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ then
ic-wasm "${WASM_DIR}/${WASM_MODULE}" -o "${WASM_DIR}/${WASM_MODULE}" metadata supported_certificate_versions -d "1,2" -v public
fi

gzip -c "${WASM_DIR}/${WASM_MODULE}" > "${DEPLOY_DIR}/${WASM_MODULE}.tmp.gz"
gzip -c --no-name --force "${WASM_DIR}/${WASM_MODULE}" > "${DEPLOY_DIR}/${WASM_MODULE}.tmp.gz"

mv "${DEPLOY_DIR}/${WASM_MODULE}.tmp.gz" "${DEPLOY_DIR}/${WASM_MODULE}.gz"

Expand Down

0 comments on commit 3b4dfe0

Please sign in to comment.