Update build scripts
Moved all the go gets into the makefile to add version wasm support Added get to update all dependencies and removed unneeded make rules
This commit is contained in:
parent
2ea02fcd27
commit
c1dd9168b2
@ -1,9 +1,7 @@
|
||||
language: go
|
||||
|
||||
before_install:
|
||||
- go get golang.org/x/tools/cmd/goimports
|
||||
- go get github.com/dennwc/dom/js
|
||||
- go get -u -v ./...
|
||||
- make get
|
||||
|
||||
go:
|
||||
- 1.12.x
|
||||
|
13
Makefile
13
Makefile
@ -1,4 +1,4 @@
|
||||
.PHONY: sync fmt vet
|
||||
.PHONY: fmt vet get clean
|
||||
|
||||
all: fmt vet MovieNight MovieNight.exe static/main.wasm
|
||||
|
||||
@ -17,12 +17,11 @@ clean:
|
||||
fmt:
|
||||
goimports -w .
|
||||
|
||||
get:
|
||||
go get -u -v ./...
|
||||
GOOS=js GOARCH=wasm go get -u -v ./...
|
||||
go get golang.org/x/tools/cmd/goimports
|
||||
|
||||
vet:
|
||||
go vet ./...
|
||||
GOOS=js GOARCH=wasm go vet ./...
|
||||
|
||||
sync:
|
||||
scp -i /c/movienight/movienight-deploy.key -r . zorchenhimer@movienight.zorchenhimer.com:/home/zorchenhimer/movienight
|
||||
|
||||
run: all
|
||||
./MovieNight.exe
|
||||
|
Loading…
Reference in New Issue
Block a user