feat: 统一 Commilitia Drop 全客户端命名与分发
This commit is contained in:
@@ -68,7 +68,14 @@ func ResolveDeviceName() string {
|
||||
if h, err := os.Hostname(); err == nil && h != "" {
|
||||
return h
|
||||
}
|
||||
return "cdrop-desktop"
|
||||
switch runtime.GOOS {
|
||||
case "darwin":
|
||||
return "Commilitia Drop (macOS)"
|
||||
case "windows":
|
||||
return "Commilitia Drop (Windows)"
|
||||
default:
|
||||
return "Commilitia Drop"
|
||||
}
|
||||
}
|
||||
|
||||
// DefaultConfig is what a fresh install gets: clipboard sync on, no autostart.
|
||||
|
||||
Reference in New Issue
Block a user