31 lines
511 B
YAML
31 lines
511 B
YAML
# https://taskfile.dev
|
|
|
|
version: '3'
|
|
|
|
env:
|
|
GO: go
|
|
GOTELEMETRY: off
|
|
|
|
vars:
|
|
IMPORT: git.laidback.moe/shinyoukai/haruhi
|
|
VERSION: 0.0.0
|
|
tasks:
|
|
default:
|
|
cmds:
|
|
- task: build
|
|
build:
|
|
desc: Build the bot
|
|
cmds:
|
|
- $GO build -v -ldflags='-w -X {{.IMPORT}}.Version=$VERSION' -buildvcs=false -o haruhi
|
|
silent: true
|
|
clean:
|
|
desc: Remove generated files
|
|
cmds:
|
|
- rm -f haruhi
|
|
silent: true
|
|
tidy:
|
|
desc: Update go.mod
|
|
cmds:
|
|
- $GO mod tidy
|
|
silent: true
|