Skip to content

Commit cfe5bf6

Browse files
author
cloudwindy
committed
fix: fix filename
1 parent ec69653 commit cfe5bf6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Taskfile.dist.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
version: "3"
22

33
vars:
4+
NAME: mirai
5+
WINDOWS_NAME: mirai.exe
46
VERSION:
57
sh: git describe --tags --always --dirty
68
BUILD:
@@ -23,7 +25,7 @@ tasks:
2325
build:
2426
desc: Build for this platform.
2527
cmds:
26-
- go build -o '{{.OUT}}' {{.GOFLAGS}} .
28+
- go build -o '{{.NAME}}' {{.GOFLAGS}} .
2729

2830
install:
2931
desc: Install on your system.
@@ -33,7 +35,7 @@ tasks:
3335
windows:
3436
desc: Build with MinGW, targeting Windows x64.
3537
cmds:
36-
- go build -o '{{.OUT}}.exe' {{.GOFLAGS}}
38+
- go build -o '{{.WINDOWS_NAME}}' {{.GOFLAGS}}
3739
env:
3840
GOOS: windows
3941
GOARCH: amd64

0 commit comments

Comments
 (0)