client-sdk/wasm: binary rename to ark-sdk.wasm (#241)

This commit is contained in:
Marco Argentieri
2024-08-13 00:30:44 +02:00
committed by GitHub
parent a8077f143d
commit 67baf9e7fc
3 changed files with 4 additions and 4 deletions

View File

@@ -114,8 +114,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: pkg/client-sdk/build/client-sdk.wasm
asset_name: client-sdk.wasm
asset_path: pkg/client-sdk/build/ark-sdk.wasm
asset_name: ark-sdk.wasm
asset_content_type: application/wasm
# Docker

View File

@@ -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

View File

@@ -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);
});