mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-17 12:14:21 +01:00
client-sdk/wasm: binary rename to ark-sdk.wasm (#241)
This commit is contained in:
4
.github/workflows/ark.release.yaml
vendored
4
.github/workflows/ark.release.yaml
vendored
@@ -114,8 +114,8 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ github.event.release.upload_url }}
|
upload_url: ${{ github.event.release.upload_url }}
|
||||||
asset_path: pkg/client-sdk/build/client-sdk.wasm
|
asset_path: pkg/client-sdk/build/ark-sdk.wasm
|
||||||
asset_name: client-sdk.wasm
|
asset_name: ark-sdk.wasm
|
||||||
asset_content_type: application/wasm
|
asset_content_type: application/wasm
|
||||||
|
|
||||||
# Docker
|
# Docker
|
||||||
|
|||||||
@@ -31,4 +31,4 @@ GO_VERSION := $(shell go version | cut -d' ' -f3)
|
|||||||
build-wasm:
|
build-wasm:
|
||||||
@mkdir -p $(BUILD_DIR)
|
@mkdir -p $(BUILD_DIR)
|
||||||
@echo "Version: $(VERSION)"
|
@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 src="wasm_exec.js"></script>
|
||||||
<script>
|
<script>
|
||||||
const go = new Go();
|
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);
|
go.run(result.instance);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user