Set up for dev work on my Mac
All checks were successful
Build and test project / build-and-test (push) Successful in 1m34s
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:
@@ -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 .
|
||||
|
||||
Reference in New Issue
Block a user