Skip to content

Commit

Permalink
build: check both locations for wasm_exec.js
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Feb 13, 2025
1 parent 9e0a193 commit c900953
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ build-server:
CGO_ENABLED=1 go build -o ./bin/server github.com/moov-io/imagecashletter/cmd/server

build-webui:
cp $(shell go env GOROOT)/misc/wasm/wasm_exec.js ./docs/webui/assets/wasm_exec.js
@if [ -f "$(shell go env GOROOT)/lib/wasm/wasm_exec.js" ]; then \
cp $(shell go env GOROOT)/lib/wasm/wasm_exec.js ./docs/webui/assets/wasm_exec.js; \
else \
cp $(shell go env GOROOT)/misc/wasm/wasm_exec.js ./docs/webui/assets/wasm_exec.js; \
fi
GOOS=js GOARCH=wasm go build -o ./docs/webui/assets/imagecashletter.wasm github.com/moov-io/imagecashletter/docs/webui/

.PHONY: check
Expand Down

0 comments on commit c900953

Please sign in to comment.