mirror of
https://github.com/Luzifer/cloudkeys-go.git
synced 2024-09-19 23:52:57 +00:00
Add cryptocore building
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
fa715073ba
commit
c262fe4b75
21
Makefile
21
Makefile
@ -8,15 +8,24 @@ build: bindata.go
|
|||||||
container: bindata.go
|
container: bindata.go
|
||||||
docker build .
|
docker build .
|
||||||
|
|
||||||
|
vue_dev:
|
||||||
|
docker run --rm -i \
|
||||||
|
-v "$(CURDIR):/src" \
|
||||||
|
-w "/src" -u $(shell id -u) \
|
||||||
|
-p 8080:8080 \
|
||||||
|
node:10-alpine \
|
||||||
|
sh -exc "npm ci && npm run serve"
|
||||||
|
|
||||||
build_vue:
|
build_vue:
|
||||||
docker run --rm -i \
|
docker run --rm -i \
|
||||||
-v "$(CURDIR):/src" \
|
-v "$(CURDIR):/src" \
|
||||||
-w "/src" \
|
-w "/src" \
|
||||||
node:10-alpine \
|
node:10-alpine \
|
||||||
sh -exc "npm ci && npm run build && chown -R $(shell id -u):$(shell id -g) ."
|
sh -exc "npm ci && npm run build"
|
||||||
|
|
||||||
|
.PHONY: bindata.go
|
||||||
bindata.go: build_vue
|
bindata.go: build_vue
|
||||||
go-bindata -o bindata.go assets/... dist/...
|
go-bindata -o bindata.go dist/...
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh
|
curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh
|
||||||
@ -25,4 +34,10 @@ publish:
|
|||||||
prepare-gae-deploy:
|
prepare-gae-deploy:
|
||||||
rm -rf Dockerfile vendor
|
rm -rf Dockerfile vendor
|
||||||
|
|
||||||
.PHONY: bindata.go
|
.PHONY: public/wasm_exec.js
|
||||||
|
public/wasm_exec.js:
|
||||||
|
curl -sSfLo public/wasm_exec.js "https://raw.githubusercontent.com/golang/go/go1.11/misc/wasm/wasm_exec.js"
|
||||||
|
|
||||||
|
.PHONY: public/cryptocore.wasm
|
||||||
|
public/cryptocore.wasm:
|
||||||
|
GOOS=js GOARCH=wasm go build -o public/cryptocore.wasm ./cryptocore
|
||||||
|
Loading…
Reference in New Issue
Block a user