Files
wisp-open/internal/platform/platform_windows.go
T
Your Name ce49f66c89 fix: Add cross-platform handling for tray, updater, and icon generation
- Add platform notes for tray startup, shortcut saving, and Linux-only settings
- Handle stat error in processRecording (missing file)
- Select correct binary name based on OS in updater
- Increase tray icon canvas size from 64 to 128 pixels
- Update frontend dist asset hash
2026-06-09 15:14:30 -07:00

45 lines
933 B
Go

//go:build windows
// ============================================================
// WINDOWS-ONLY FILE — Delegates all platform operations to the
// internal/windows package (overlay, media, startup, process).
// The Linux equivalent is platform_linux.go
// ============================================================
package platform
import "wis-free-v3/internal/windows"
func NewOverlay() Overlay {
return windows.NewOverlay()
}
func PauseMedia() bool {
return windows.PauseMedia()
}
func ResumeMedia(wasPaused bool) {
windows.ResumeMedia(wasPaused)
}
func AddToStartup() error {
return windows.AddToStartup()
}
func RemoveFromStartup() error {
return windows.RemoveFromStartup()
}
func IsInStartup() bool {
return windows.IsInStartup()
}
func IsProcessRunning(pid int) bool {
return windows.IsProcessRunning(pid)
}
func EnsureDesktopFile(iconBytes []byte) error {
// Not applicable on Windows
return nil
}