PasteFerry (隔空贴): clipboard and file sync across macOS, Windows and Linux. Direct-first, end-to-end encrypted. Optional official access: no server to host. Independent self-hosting remains available.
Dart airdrop-alternativeclipboardclipboard-sharingclipboard-synccopy-pastecross-platformend-to-end-encryptionfile-syncfile-transferfluttergolanglinuxmacosnat-traversalp2pself-hostedtailscaleuniversal-clipboardwebrtcwindows
package diag
import (
"fmt"
"golang.org/x/sys/windows"
)
// osVersion 按内部版本号区分 Windows 10 与 11:两者的主版本号都是 10,11 从 22000 开始
func osVersion() string {
v := windows.RtlGetVersion()
name := "Windows 10"
if v.MajorVersion == 10 && v.BuildNumber >= 22000 {
name = "Windows 11"
}
return fmt.Sprintf("%s (build %d)", name, v.BuildNumber)
}