-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-web
executable file
·28 lines (24 loc) · 1.25 KB
/
build-web
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
set -e
if [ "$1" == "--keygen" ]; then
echo "building wasm32-keygen"
wasm-pack build --weak-refs --target web --out-name kaspa --out-dir web/kaspa-keygen --features wasm32-keygen
elif [ "$1" == "--rpc" ]; then
echo "building wasm32-rpc"
wasm-pack build --weak-refs --target web --out-name kaspa --out-dir web/kaspa-rpc --features wasm32-rpc
elif [ "$1" == "--core" ]; then
echo "building wasm32-core"
wasm-pack build --weak-refs --target web --out-name kaspa --out-dir web/kaspa-core --features wasm32-core
elif [ "$1" == "--sdk" ]; then
echo "building wasm32-sdk"
wasm-pack build --weak-refs --target web --out-name kaspa --out-dir web/kaspa --features wasm32-sdk
else
echo "building wasm32-keygen"
wasm-pack build --weak-refs --target web --out-name kaspa --out-dir web/kaspa-keygen --features wasm32-keygen
echo "building wasm32-rpc"
wasm-pack build --weak-refs --target web --out-name kaspa --out-dir web/kaspa-rpc --features wasm32-rpc
echo "building wasm32-core"
wasm-pack build --weak-refs --target web --out-name kaspa --out-dir web/kaspa-core --features wasm32-core
echo "building wasm32-sdk"
wasm-pack build --weak-refs --target web --out-name kaspa --out-dir web/kaspa --features wasm32-sdk
fi