From 7518356edb37ea4c326b35a413cfe63cec5c9eb7 Mon Sep 17 00:00:00 2001 From: Jono Wenger <jono@elixxir.io> Date: Mon, 9 Jan 2023 14:20:33 -0800 Subject: [PATCH] Add building of wasm binaries to Makefile --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 4a6c40fd..f2aef79a 100644 --- a/Makefile +++ b/Makefile @@ -28,6 +28,12 @@ update_master: binary: GOOS=js GOARCH=wasm go build -ldflags '-w -s' -trimpath -o xxdk.wasm main.go +worker_binaries: + GOOS=js GOARCH=wasm go build -ldflags '-w -s' -trimpath -o xxdk-channelsIndexedDkWorker.wasm ./indexedDb/impl/channels/... + GOOS=js GOARCH=wasm go build -ldflags '-w -s' -trimpath -o xxdk-dmIndexedDkWorker.wasm ./indexedDb/impl/dm/... + +binaries: binary worker_binaries + wasm_tests: cp utils/utils_js.s utils/utils_js.s.bak > utils/utils_js.s -- GitLab