diff --git a/.gitignore b/.gitignore index c4cbc12a..fdaf6278 100644 --- a/.gitignore +++ b/.gitignore @@ -35,4 +35,6 @@ cover.out .docker-creds fairos.aar -fairos-sources.jar \ No newline at end of file +fairos-sources.jar +fairos.wasm +fairos.wasm.gz \ No newline at end of file diff --git a/.goreleaser-wasm.yaml b/.goreleaser-wasm.yaml index 17d92902..dada51ae 100644 --- a/.goreleaser-wasm.yaml +++ b/.goreleaser-wasm.yaml @@ -3,7 +3,7 @@ project_name: fairos release: prerelease: auto extra_files: - - glob: /home/runner/work/fairOS-dfs/fairOS-dfs/dist/fairos.wasm - - glob: /home/runner/work/fairOS-dfs/fairOS-dfs/dist/fairos.wasm.gz + - glob: ./fairos.wasm + - glob: ./fairos.wasm.gz builds: - skip: true \ No newline at end of file diff --git a/Makefile b/Makefile index 7d33ddff..6207818e 100644 --- a/Makefile +++ b/Makefile @@ -88,16 +88,10 @@ release-dry-run: --skip-validate=true \ --skip-publish - -BUILD_DIR := $(PWD) -BIN_PATH := $(BUILD_DIR)/dist -EXEC_NAME := fairos.wasm -GZIP_EXEC_NAME := $(EXEC_NAME).gz - .PHONY: wasm wasm: - @GOOS=js GOARCH=wasm $(GO) build -ldflags="-s -w" -o $(BIN_PATH)/$(EXEC_NAME) - @gzip -9 -v -c $(BIN_PATH)/$(EXEC_NAME) > $(BIN_PATH)/$(GZIP_EXEC_NAME) + @GOOS=js GOARCH=wasm $(GO) build -ldflags="-s -w" -o fairos.wasm + @gzip -9 -v -c fairos.wasm > fairos.wasm.gz .PHONY: android android: