fixes:
- fixed bumpedge test for obstacles - fixed obstacle crash when going to the south or east - added wasm builder
This commit is contained in:
8
Makefile
8
Makefile
@@ -4,7 +4,8 @@ COMMIT = $(shell git rev-parse --short=8 HEAD)
|
||||
BUILD = $(shell date +%Y.%m.%d.%H%M%S)
|
||||
#VERSION := $(if $(filter $(BRANCH), development),$(version)-$(BRANCH)-$(COMMIT)-$(BUILD),$(version))
|
||||
VERSION := $(version)-$(BRANCH)-$(COMMIT)-$(BUILD)
|
||||
|
||||
SHORTVERSION := $(version)-$(BRANCH)-$(COMMIT)
|
||||
LDFLAGS := -ldflags "-X 'openquell/config.VERSION=$(VERSION)'"
|
||||
|
||||
all: clean build
|
||||
@echo ok
|
||||
@@ -15,6 +16,11 @@ clean:
|
||||
build:
|
||||
go build -ldflags "-X 'openquell/config.VERSION=$(VERSION)'"
|
||||
|
||||
buildwasm:
|
||||
env GOOS=js GOARCH=wasm go build -o openquell.wasm $(LDFLAGS) .
|
||||
|
||||
zipwasm:
|
||||
zip -r openquell-$(SHORTVERSION).zip index.html openquell.wasm wasm_exec.js
|
||||
|
||||
test:
|
||||
@echo $(VERSION)
|
||||
|
||||
Reference in New Issue
Block a user