-
Notifications
You must be signed in to change notification settings - Fork 0
/
taskfile.yml
99 lines (81 loc) · 2.74 KB
/
taskfile.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
version: '3'
vars:
version: 2.1.1
tasks:
build:
deps: [clean, linux32, linux64, linuxarm, linuxarm64, windows64, apple, applesilicon]
clean:
cmds:
- rm -rf build
- rm -rf dist
- rm -rf db/dist
run: once
front:
deps: [clean]
cmds:
- npm run build
- cp -R dist db/
run: once
buildlinux32:
deps: [front]
cmds:
- cd db && CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -o ../build/forager-"{{.version}}"-linux32
- cd build && zip forager-"{{.version}}"-linux32.zip forager-"{{.version}}"-linux32
buildlinux64:
deps: [front]
cmds:
- cd db && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ../build/forager-"{{.version}}"-linux
- cd build && zip forager-"{{.version}}"-linux.zip forager-"{{.version}}"-linux
buildlinuxarm:
deps: [front]
cmds:
- cd db && CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -o ../build/forager-"{{.version}}"-linuxarm
- cd build && zip forager-"{{.version}}"-linuxarm.zip forager-"{{.version}}"-linuxarm
buildlinuxarm64:
deps: [front]
cmds:
- cd db && CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o ../build/forager-"{{.version}}"-linuxarm64
- cd build && zip forager-"{{.version}}"-linuxarm64.zip forager-"{{.version}}"-linuxarm64
buildwindows64:
deps: [front]
cmds:
- cd db && GOOS=windows GOARCH=amd64 go build -o ../build/forager-"{{.version}}".exe
- cd build && zip forager-"{{.version}}"-windows.zip forager-"{{.version}}".exe
buildapple:
deps: [front]
cmds:
- cd db && GOOS=darwin GOARCH=amd64 go build -o ../build/forager-"{{.version}}"-apple.app
- cd build && zip forager-"{{.version}}"-apple.zip forager-"{{.version}}"-apple.app
buildapplesilicon:
deps: [front]
cmds:
- cd db && GOOS=darwin GOARCH=arm64 go build -o ../build/forager-"{{.version}}"-appliesilicon.app
- cd build && zip forager-"{{.version}}"-appliesilicon.zip forager-"{{.version}}"-appliesilicon.app
linux32:
deps: [buildlinux32]
cmds:
- cd build && rm -rf forager-"{{.version}}"-linux32
linux64:
deps: [buildlinux64]
cmds:
- cd build && rm -rf forager-"{{.version}}"-linux
linuxarm:
deps: [buildlinuxarm]
cmds:
- cd build && rm -rf forager-"{{.version}}"-linuxarm
linuxarm64:
deps: [buildlinuxarm64]
cmds:
- cd build && rm -rf forager-"{{.version}}"-linuxarm64
windows64:
deps: [buildwindows64]
cmds:
- cd build && rm -rf forager-"{{.version}}".exe
apple:
deps: [buildapple]
cmds:
- cd build && rm -rf forager-"{{.version}}"-apple.app
applesilicon:
deps: [buildapplesilicon]
cmds:
- cd build && rm -rf forager-"{{.version}}"-appliesilicon.app