Files
funknetz/main.go
T
konradandCursor 2c621d4b7f Let the config choose protocol 2 or 3, and fall back for one session only.
The default stays v2. A reflector that refuses that version and names the other gets one session of it, then the station announces the configured protocol again.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-22 16:28:42 +02:00

42 lines
895 B
Go

//go:build !bindings
// Command funknetz is the headset station window.
package main
import (
"embed"
"fmt"
"os"
"github.com/wailsapp/wails/v2"
"github.com/wailsapp/wails/v2/pkg/options"
"github.com/wailsapp/wails/v2/pkg/options/assetserver"
)
//go:embed all:frontend/dist
var assets embed.FS
func main() {
st, err := openStationReported(os.Args[1:], os.Stderr)
if err != nil {
os.Exit(1)
}
app := &App{station: st}
err = wails.Run(&options.App{
Title: "funknetz",
Width: 420,
Height: 480,
MinWidth: 420,
MinHeight: 480,
BackgroundColour: &options.RGBA{R: 16, G: 20, B: 24, A: 255},
AssetServer: &assetserver.Options{Assets: assets},
OnStartup: app.startup,
OnShutdown: app.shutdown,
Bind: []any{app},
})
if err != nil {
fmt.Fprintln(os.Stderr, err.Error())
os.Exit(1)
}
}