From b4c15bf78c2ecea3765542679e2fc873370ed975 Mon Sep 17 00:00:00 2001 From: nite Date: Thu, 5 Feb 2026 20:52:57 +0800 Subject: [PATCH] release 0.0.2 --- build/linux/Taskfile.yml | 10 ++++++++++ build/windows/Taskfile.yml | 7 +++++++ internal/config/config.go | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/build/linux/Taskfile.yml b/build/linux/Taskfile.yml index e07bdd7..7555ce3 100644 --- a/build/linux/Taskfile.yml +++ b/build/linux/Taskfile.yml @@ -59,6 +59,16 @@ tasks: CGO_ENABLED: 1 GOARCH: "{{.ARCH | default ARCH}}" + build:prod: + summary: Builds the application natively on Linux + deps: + - task: build + cmds: + - upx --best --lzma {{.OUTPUT}} + vars: + DEFAULT_OUTPUT: "{{.BIN_DIR}}/{{.APP_NAME}}" + OUTPUT: "{{ .OUTPUT | default .DEFAULT_OUTPUT }}" + build:docker: summary: Builds for Linux using Docker (for non-Linux hosts or when no C compiler available) internal: true diff --git a/build/windows/Taskfile.yml b/build/windows/Taskfile.yml index 2610385..df416bb 100644 --- a/build/windows/Taskfile.yml +++ b/build/windows/Taskfile.yml @@ -53,6 +53,13 @@ tasks: CGO_ENABLED: '{{.CGO_ENABLED | default "0"}}' GOARCH: "{{.ARCH | default ARCH}}" + build:prod: + summary: Builds the application for Windows + deps: + - task: build + cmds: + - upx --best --lzma "{{.BIN_DIR}}/{{.APP_NAME}}.exe" + build:docker: summary: Cross-compiles for Windows using Docker with Zig (for CGO builds on non-Windows) internal: true diff --git a/internal/config/config.go b/internal/config/config.go index e29ebdb..8bd2e1c 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -19,7 +19,7 @@ type WindowState struct { Maximised bool `mapstructure:"maximised"` } -const Version = "0.0.1" +const Version = "0.0.2" type Config struct { v *viper.Viper