-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
39 lines (32 loc) · 744 Bytes
/
Copy pathTaskfile.yml
File metadata and controls
39 lines (32 loc) · 744 Bytes
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
version: "3"
vars:
BINARY_NAME: nem.exe
CMD_PATH: ./app
tasks:
default:
desc: Build the application
deps: [build]
build:
desc: Build the GUI binary (no console window, stripped, trimmed paths)
cmds:
- go build -trimpath -ldflags "-s -w -H=windowsgui" -o {{.BINARY_NAME}} {{.CMD_PATH}}
run:
desc: Run the application (keeps a console window attached for debug output)
cmds:
- go run {{.CMD_PATH}}
fmt:
desc: Format Go code
cmds:
- go fmt ./...
winres:
desc: Compile windows resources
dir: app
cmds:
- go-winres.exe make
sources:
- app/winres/**/*
clean:
desc: Remove build artifacts
cmds:
- rm -f {{.BINARY_NAME}}
- go clean