Add "wsl_clipboard" build tag for creating Linux binaries that use the Windows clipboard

This commit is contained in:
2024-05-29 15:42:15 -04:00
parent ae7bebc461
commit ea34f644f3
4 changed files with 7 additions and 4 deletions
+4 -1
View File
@@ -24,9 +24,12 @@ CGO_ENABLED=0 go build -ldflags="-s -w" ./mutn.go
CGO_ENABLED=0 go build -ldflags="-s -w" ./libmuttonserver.go
```
Additionally, some custom build tags can be used to create different binaries. The following tags are not used in official builds:
- `wsl_clipboard`: Allows creating a Linux binary that can interact with the Windows clipboard (for WSL)
- `termux`: Allows creating a Linux binary that can interact with the Termux clipboard (for Android)
# Roadmap
#### Release v0.2.0 - Make repo public - No binaries
- Add custom build option for WSL support
- Add fail-specific error codes
- Address most TODOs
- Hunt and fix bugs in preparation for public debut
+1 -1
View File
@@ -1,4 +1,4 @@
//go:build termux
//go:build termux && !windows && !darwin
package backend
+1 -1
View File
@@ -1,4 +1,4 @@
//go:build !windows && !darwin && !termux
//go:build !windows && !darwin && !termux && !wsl_clipboard
package backend
+1 -1
View File
@@ -1,4 +1,4 @@
//go:build windows
//go:build windows || (!windows && !darwin && !termux && wsl_clipboard)
package backend