From 6cf01e0d3c6b5588e1ec1ab21ebaca58e7055140 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Thu, 30 May 2024 22:21:39 -0400 Subject: [PATCH] Simplify clipboard build constraints --- README.md | 2 +- src/backend/copyTERMUX.go | 2 +- src/backend/copyUNIXGeneric.go | 2 +- src/backend/copyWIN.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c4748c6..b8ae256 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/backend/copyTERMUX.go b/src/backend/copyTERMUX.go index 724596e..7fe808f 100644 --- a/src/backend/copyTERMUX.go +++ b/src/backend/copyTERMUX.go @@ -1,4 +1,4 @@ -//go:build termux && !windows && !darwin +//go:build linux && termux package backend diff --git a/src/backend/copyUNIXGeneric.go b/src/backend/copyUNIXGeneric.go index 6ca7883..50db16e 100644 --- a/src/backend/copyUNIXGeneric.go +++ b/src/backend/copyUNIXGeneric.go @@ -1,4 +1,4 @@ -//go:build !windows && !darwin && !termux && !wsl_clipboard +//go:build !windows && !darwin && !termux && !wsl package backend diff --git a/src/backend/copyWIN.go b/src/backend/copyWIN.go index b54b847..68edf12 100644 --- a/src/backend/copyWIN.go +++ b/src/backend/copyWIN.go @@ -1,4 +1,4 @@ -//go:build windows || (!windows && !darwin && !termux && wsl_clipboard) +//go:build windows || (linux && wsl) package backend