Auto-bump build number on each compile; ship versioned Windows artifacts. Co-authored-by: Cursor <cursoragent@cursor.com>
34 lines
624 B
Go
34 lines
624 B
Go
//go:build darwin
|
|
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"log"
|
|
"os"
|
|
"os/exec"
|
|
"syscall"
|
|
|
|
"github.com/crgimenes/glaze"
|
|
)
|
|
|
|
func openExternal(raw string) error {
|
|
return exec.Command("open", raw).Start()
|
|
}
|
|
|
|
func fatalf(format string, args ...any) {
|
|
msg := fmt.Sprintf(format, args...)
|
|
log.Println(msg)
|
|
_ = exec.Command("osascript", "-e", fmt.Sprintf(`display alert "Navis" message %q`, msg)).Run()
|
|
os.Exit(1)
|
|
}
|
|
|
|
func shutdownSignals() []os.Signal {
|
|
return []os.Signal{os.Interrupt, syscall.SIGTERM}
|
|
}
|
|
|
|
func decorateWindow(w glaze.WebView) {
|
|
// macOS Dock/app icon comes from the .app bundle; nothing to apply here.
|
|
_ = w
|
|
}
|