feat: basic cross compilation of multiple binaries

This commit is contained in:
DaanSelen
2026-03-30 13:06:46 +02:00
parent 726e145175
commit d1fa0ba337
7 changed files with 127 additions and 102 deletions
+16 -2
View File
@@ -1,20 +1,34 @@
package main
import (
"fyne.io/fyne/app"
"log"
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/theme"
setup "patchworks/src/modules/setup"
_ "embed"
)
//go:embed icon.ico
var iconData []byte
func main() {
if ok, err := setup.PrepareEnvironment(); !ok {
log.Printf("An error occurred: %v", err)
return
}
iconResource := fyne.NewStaticResource("./src/icon.ico", iconData)
app := app.NewWithID("nl.systemec.patchworks")
app.Settings().SetTheme(theme.DefaultTheme())
app.SetIcon(iconResource)
w
w := app.NewWindow("PatchWorks")
w.Resize(windowSize)
w.ShowAndRun()
}