mirror of
https://github.com/jahruz67/wisp-open.git
synced 2026-08-08 18:14:08 +00:00
- 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
45 lines
933 B
Go
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
|
|
}
|