-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
46 lines (45 loc) · 1.04 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
version: "3"
tasks:
build:
desc: Build the app
deps:
- lint
- assets
cmds:
- go build -ldflags="-s -w -H=windowsgui -extldflags '-static -static-libgcc'" -buildmode=exe -o bin/coh3-replay-manager-go.exe
env:
CGO_ENABLED: 1
CC: C:\msys64\mingw64\bin\gcc.exe
dev:
deps:
- assets
cmds:
- air -c .air.toml
silent: false
env:
DEV_MODE: true
release:
deps:
- lint
- assets
cmds:
- goreleaser release --clean
dotenv: [".env"]
release-snapshot:
deps:
- lint
- assets
cmds:
- goreleaser release --snapshot --clean
dotenv: [".env"]
assets:
cmds:
- rsrc -ico assets/icons/icon.ico -o icon.syso
- go-bindata assets/...
- echo "//lint:file-ignore SA1019 Ignore it's generated" > tempfile
- echo "//lint:file-ignore ST1005 Ignore it's generated" >> tempfile
- cat $PWD\\bindata.go | tee -a tempfile >/dev/null 2>&1
- mv tempfile $PWD\\bindata.go
lint:
cmds:
- staticcheck