Files
funknetz/main.go
T
konradandCursor f8cad55e9c Switch the lab reflector to jayReflector and harden local station use.
Build DJ1JAY’s fork with an optional Satellite/Trunk stub, allow -c/--config, open capture and playback as separate devices, and add a lab start helper.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-07 12:14:41 +02:00

41 lines
865 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 := openStation(os.Args[1:])
if err != nil {
fmt.Fprintln(os.Stderr, err.Error())
os.Exit(1)
}
app := &App{station: st}
err = wails.Run(&options.App{
Title: "funknetz",
Width: 420,
Height: 280,
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)
}
}