mirror of
https://github.com/aljazceru/ark.git
synced 2026-01-31 00:54:48 +01:00
client-sdk/wasm: binary rename to ark-sdk.wasm (#241)
This commit is contained in:
@@ -31,4 +31,4 @@ GO_VERSION := $(shell go version | cut -d' ' -f3)
|
||||
build-wasm:
|
||||
@mkdir -p $(BUILD_DIR)
|
||||
@echo "Version: $(VERSION)"
|
||||
@GOOS=js GOARCH=wasm GO111MODULE=on go build -ldflags="-X 'main.Version=$(VERSION)'" -o $(BUILD_DIR)/client-sdk.wasm $(WASM_DIR)/main.go
|
||||
@GOOS=js GOARCH=wasm GO111MODULE=on go build -ldflags="-X 'main.Version=$(VERSION)'" -o $(BUILD_DIR)/ark-sdk.wasm $(WASM_DIR)/main.go
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<script src="wasm_exec.js"></script>
|
||||
<script>
|
||||
const go = new Go();
|
||||
WebAssembly.instantiateStreaming(fetch("main.wasm"), go.importObject).then((result) => {
|
||||
WebAssembly.instantiateStreaming(fetch("ark-sdk.wasm"), go.importObject).then((result) => {
|
||||
go.run(result.instance);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user