Some checks failed
Release / build (push) Failing after 19s
Full Syncthing tray wrapper with: - System tray with 5 icon states (idle/syncing/paused/error/disconnected) - Syncthing REST API client with auto-discovered API key - Long-polling event listener for real-time status - Transfer rate monitoring, folder tracking, recent files, conflict counting - Full context menu with folders, recent files, settings toggles - Embedded admin panel binary (webview, requires CGO) - OS notifications via beeep (per-event configurable) - Syncthing process management with auto-restart - Cross-platform installer with autostart - CI pipeline for Linux (.deb + .tar.gz) and Windows (.zip) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
22 lines
413 B
Go
22 lines
413 B
Go
//go:build windows
|
|
|
|
package syncthing
|
|
|
|
import (
|
|
"os/exec"
|
|
"syscall"
|
|
)
|
|
|
|
// createSyncthingCmd creates the Syncthing command with CREATE_NO_WINDOW flag.
|
|
func createSyncthingCmd() *exec.Cmd {
|
|
path := findSyncthing()
|
|
if path == "" {
|
|
return nil
|
|
}
|
|
cmd := exec.Command(path, "-no-browser", "-no-restart")
|
|
cmd.SysProcAttr = &syscall.SysProcAttr{
|
|
CreationFlags: 0x08000000, // CREATE_NO_WINDOW
|
|
}
|
|
return cmd
|
|
}
|