Skip to content

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.

389 B
Raw Blame
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)
}