1
0

Set up for dev work on my Mac
All checks were successful
Build and test project / build-and-test (push) Successful in 1m34s

I was previously using my Linux desktop, but I also want to be able to
use my Mac laptop or Mac mini to continue working on this.
This commit is contained in:
2026-03-21 13:48:28 +01:00
parent 8a1eb263bf
commit c5ca91f524
4 changed files with 32 additions and 578 deletions

View File

@@ -5,12 +5,19 @@ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
WEB_DIR="$SCRIPT_DIR/../web"
SRC_DIR="$WEB_DIR/src"
DIST_DIR="$WEB_DIR/dist"
LOCAL_GO_DIR="$SCRIPT_DIR/go"
if [ ! -d "$SCRIPT_DIR/kobopatch-src" ]; then
echo "Error: kobopatch source not found. Run ./setup.sh first."
exit 1
fi
# Use local Go if available
if [ -x "$LOCAL_GO_DIR/bin/go" ]; then
export GOROOT="$LOCAL_GO_DIR"
export PATH="$LOCAL_GO_DIR/bin:$PATH"
fi
echo "Building kobopatch WASM..."
cd "$SCRIPT_DIR"
GOOS=js GOARCH=wasm go build -o kobopatch.wasm .