Skip to content

Commit

Permalink
Update build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoljub-duric authored Sep 3, 2024
1 parent e540d49 commit e79533b
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions rust/basic_bitcoin/src/basic_bitcoin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,11 @@ else
fi

cargo install ic-wasm --version 0.2.0 --root ./
STATUS=$?

if [[ "$STATUS" -eq "0" ]]; then
./bin/ic-wasm \
"$SCRIPT_DIR/../../target/$TARGET/release/$CANISTER.wasm" \
-o "$SCRIPT_DIR/../../target/$TARGET/release/$CANISTER.wasm" \
metadata candid:service -f "$SCRIPT_DIR/basic_bitcoin.did" -v public
true
else
echo Could not install ic-wasm
false
fi
./bin/ic-wasm \
"$SCRIPT_DIR/../../target/$TARGET/release/$CANISTER.wasm" \
-o "$SCRIPT_DIR/../../target/$TARGET/release/$CANISTER.wasm" \
metadata candid:service -f "$SCRIPT_DIR/basic_bitcoin.did" -v public

popd

0 comments on commit e79533b

Please sign in to comment.