Skip to content

Commit

Permalink
Attempt to fix the deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
aterga committed Dec 4, 2024
1 parent e756c4c commit f92e7b9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion deploy_dapp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ export ARG="${3:-()}"

if [[ -z "${WASM}" ]]
then
export WASM=".dfx/${DX_NETWORK}/canisters/${NAME}/${NAME}.wasm"
./bin/dfx build --network "${NETWORK}" "${NAME}"
WASM=".dfx/${DX_NETWORK}/canisters/${NAME}/${NAME}"
ic-wasm "${WASM}.wasm" -o "${WASM}-s.wasm" shrink
gzip "${WASM}-s.wasm"
export WASM="${WASM}-s.wasm.gz"
fi

./bin/dfx canister install "${NAME}" --network "${NETWORK}" --argument "${ARG}" --argument-type idl --wasm "${WASM}"
5 changes: 5 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ chmod +x dfx
if [[ "${OS}" == "linux" ]]
then
export QUILL_PLATFORM="linux"
export IC_WASM_PLATFORM="linux64"
elif [[ "${OS}" == "darwin" ]]
then
export QUILL_PLATFORM="macos"
export IC_WASM_PLATFORM="macos"
else
echo "Unknown OS!"
exit 1
Expand All @@ -43,6 +45,9 @@ fi
curl --fail -L "https://github.com/dfinity/quill/releases/download/v${QUILL_VERSION}/quill-${QUILL_PLATFORM}-x86_64" -o quill
chmod +x quill

curl --fail -L "https://github.com/dfinity/ic-wasm/releases/download/${IC_WASM_VERSION}/ic-wasm-${IC_WASM_PLATFORM}" -o ic-wasm
chmod +x ic-wasm

if [[ "${OS}" == "linux" ]]
then
export DIDC="linux64"
Expand Down
3 changes: 2 additions & 1 deletion settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ export DFX_VERSION="0.24.2"
export DFX_SNS_VERSION="0.4.1"
export DFX_NNS_VERSION="0.4.1"

export QUILL_VERSION="0.5.1"
export QUILL_VERSION="0.5.1"
export IC_WASM_VERSION="0.9.1"

0 comments on commit f92e7b9

Please sign in to comment.