mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-17 23:50:13 +01:00
Merge c1b1e569e8 into 76f9cea516
This commit is contained in:
commit
c5f7fffb02
1 changed files with 11 additions and 2 deletions
|
|
@ -1,7 +1,16 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cd $(git rev-parse --show-toplevel)
|
# get the repo root directory safely
|
||||||
|
REPO_ROOT="$(git rev-parse --show-toplevel)"
|
||||||
|
cd "$REPO_ROOT" || { echo "Error: Failed to change directory"; exit 1; }
|
||||||
|
|
||||||
cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" ./docs/assets/
|
cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" ./docs/assets/
|
||||||
|
|
||||||
GOARCH=wasm GOOS=js go build -o ./docs/assets/tplprev.wasm ./tplprev
|
# build webassembly binary
|
||||||
|
GOARCH=wasm GOOS=js go build -o ./docs/assets/tplprev.wasm ./tplprev
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Error: WASM build failed!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "WASM build successful!"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue