-
-
Notifications
You must be signed in to change notification settings - Fork 61
/
Taskfile.Release.yaml
30 lines (26 loc) · 922 Bytes
/
Taskfile.Release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# https://taskfile.dev
version: "3"
tasks:
npm-build:
internal: true
dir: server/app
cmds:
- npm ci
- npm run build
build:
desc: Build OpenBooks binaries for all supported platforms.
deps:
- npm-build
dir: cmd/openbooks
cmds:
- go get
- env CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o ./../../build/openbooks.exe
- env CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o ./../../build/openbooks_mac
- env CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o ./../../build/openbooks_mac_arm
- env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./../../build/openbooks_linux
- env CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o ./../../build/openbooks_linux_arm
build-desktop:
desc: Build OpenBooks in the experimental desktop mode with a WebView GUI.
dir: cmd/openbooks
cmds:
- go build -tags webviews