Cross-platform desktop daemon for WellSpr.ing / NNN.today merchants. Runs silently at login on Windows (Task Scheduler), macOS (LaunchAgent), and Linux (systemd user service). Build commands: Windows: GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-s -w -H=windowsgui" -o ody-agent-win.exe . macOS: GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go build -ldflags "-s -w" -o ody-agent-mac . Linux: GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-s -w" -o ody-agent-linux .
8 lines
134 B
Go
8 lines
134 B
Go
//go:build !windows
|
|
|
|
package main
|
|
|
|
import "os/exec"
|
|
|
|
// noWindow is a no-op on non-Windows platforms.
|
|
func noWindow(cmd *exec.Cmd) {}
|