We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a87c22c commit 681af9eCopy full SHA for 681af9e
frontend/scripts/install.sh
@@ -17,9 +17,24 @@ fi
17
# wasm-pack
18
# wasm-pack will be installed by npm package
19
# https://rustwasm.github.io/wasm-pack/installer/
20
-# if ! hash wasm-pack 2>/dev/null; then
21
-# curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
22
-# fi
+if ! hash wasm-pack 2>/dev/null; then
+ curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
+fi
23
+
24
+# copy wasm-pack
25
+destination="$HOME/.config/wasm-pack-nodejs/bin"
26
+source=$(which wasm-pack)
27
+if [ -z "$source" ]; then
28
+ echo "wasm-pack is not installed or not found in PATH"
29
+else
30
+ echo "$source"
31
+ if [ -d "$destination" ]; then
32
+ cp "$source" "$destination"
33
+ else
34
+ mkdir -p "$destination"
35
36
+ fi
37
38
39
40
# yarn
0 commit comments