Simplify clipboard build constraints

This commit is contained in:
2024-05-30 22:21:39 -04:00
parent 3fcd20b1ca
commit 6cf01e0d3c
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ 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)
- `wsl`: 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
+1 -1
View File
@@ -1,4 +1,4 @@
//go:build termux && !windows && !darwin
//go:build linux && termux
package backend
+1 -1
View File
@@ -1,4 +1,4 @@
//go:build !windows && !darwin && !termux && !wsl_clipboard
//go:build !windows && !darwin && !termux && !wsl
package backend
+1 -1
View File
@@ -1,4 +1,4 @@
//go:build windows || (!windows && !darwin && !termux && wsl_clipboard)
//go:build windows || (linux && wsl)
package backend