diff --git a/Makefile b/Makefile index 872f4c4..24aad12 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ GO ?= go -GOFLAGS ?= -buildvcs=false -ldflags='-w -X code.laidback.moe/yuki.Version=1.0' -buildmode=exe -v +GOFLAGS ?= -buildmode=exe -buildvcs=false -v PREFIX ?= /usr/local all: build diff --git a/Taskfile.yml b/Taskfile.yml index 8977f57..0c714d1 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -6,10 +6,6 @@ env: GO: go GOTELEMETRY: off -vars: - IMPORT: code.laidback.moe/yuki - VERSION: 2026.01.21 - tasks: default: cmds: @@ -17,7 +13,7 @@ tasks: build: desc: Build the interface cmds: - - $GO build -v -ldflags='-w -X {{.IMPORT}}.Version={{.VERSION}}' -buildvcs=false -o yuki + - $GO build -buildmode=exe -buildvcs=false -v clean: desc: Remove generated files cmds: diff --git a/root.go b/root.go index ca4b7a3..dfd3417 100644 --- a/root.go +++ b/root.go @@ -8,7 +8,6 @@ import ( var rootCmd = &cobra.Command{ Use: "yuki", Short: "An extraterrestial client for WriteFreely", - Version: FullVersion(), } func Execute() { diff --git a/version.go b/version.go deleted file mode 100644 index 6b53525..0000000 --- a/version.go +++ /dev/null @@ -1,17 +0,0 @@ -package main - -import ( - "fmt" -) - -var ( - Revision = "0" - Version = "0" -) - -func FullVersion() string { - return fmt.Sprintf("%s (r%s)", Version, Revision) -} -func PrintVersion() string { - return fmt.Sprintf("%s", Version) -}