Add Windows build support and fix Windows compatibility issues- Add build-windows.ps1 PowerShell script for Windows builds- Add BUILD-WINDOWS.md documentation for Windows users - Update build.sh to include Windows AMD64 and .exe extensions- Fix util/util.go Windows path handling (use filepath instead of path)- Fix error logging format (%v instead of %w)- Support Windows AMD64, 386, and ARM64 architectures

This commit is contained in:
Othman Suseno
2025-09-16 01:15:52 +07:00
parent 0dedb1a7d9
commit 460934af65
6 changed files with 132 additions and 26 deletions

4
go.mod
View File

@@ -6,7 +6,7 @@ require (
github.com/DataDog/zstd v1.4.5 // indirect
github.com/Sereal/Sereal v0.0.0-20200820125258-a016b7cda3f3 // indirect
github.com/asdine/storm/v3 v3.2.1
github.com/atotto/clipboard v0.1.4 // indirect
github.com/atotto/clipboard v0.1.4
github.com/gdamore/tcell/v2 v2.1.0
github.com/golang/protobuf v1.4.3 // indirect
github.com/golang/snappy v0.0.2 // indirect
@@ -15,7 +15,7 @@ require (
github.com/mitchellh/go-homedir v1.1.0
github.com/pgavlin/femto v0.0.0-20201224065653-0c9d20f9cac4
github.com/rivo/tview v0.0.0-20210111184519-c818a0c789ee
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.7.0 // indirect
go.etcd.io/bbolt v1.3.5 // indirect
golang.org/x/net v0.0.0-20201224014010-6772e930b67b // indirect