-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
70 lines (62 loc) · 1.72 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
# https://taskfile.dev
version: '3'
tasks:
deps:install:
internal: true
cmds:
- go get -C ./ ./...
- go install fyne.io/fyne/v2/cmd/[email protected]
pre:build:
internal: true
generates:
- bundled.go
sources:
- icon.png
cmds:
- fyne bundle -o bundled.go assets/icon.png
build:
vars:
VERSION: '{{.VERSION | default "0.0.0"}}'
generates:
- bin/Kinjector.exe
sources:
- '*.go'
cmds:
- task: deps:install
- task: pre:build
- go mod tidy
- fyne package -os windows -icon assets/icon.ico -name Kinjector --tags 'ldflags=-s -w' -appVersion {{.VERSION}}
- task: find:and:move:bin
# bugged couse fyne is a piece of shit and assumes every one has a cert to sign release version
build:release:
vars:
VERSION: '{{.VERSION | default "0.0.0"}}'
generates:
- bin/Kinjector.exe
sources:
- '*.go'
cmds:
- task: deps:install
- task: pre:build
- fyne release -os windows -icon assets/icon.png -name Kinjector -appVersion {{.VERSION}} -developer kociumba -certificate ' ' -password ' '
- task: find:and:move:bin
find:and:move:bin:
internal: true
cmds:
- '{{if eq OS "windows"}}cmd /c move {{else}}mv {{end}}./Kinjector.exe ./bin/Kinjector.exe'
dev:build:refresh:
watch: true
sources:
- '*.go'
cmds:
- |
tasklist /FI "IMAGENAME eq kinjector.exe" | findstr /I kinjector.exe && taskkill /IM kinjector.exe /F || echo "kinjector.exe not running"
- go build
- cmd /c kinjector.exe
# this is fucking up in gh actions and isn't needed
# build:dll:no:gc:
# env:
# vars:
# GOGC: off
# cmds:
# - go build -C "test dll" -ldflags="-s -w" -o bin/dllmain.dll -buildmode=c-shared