switch to typescript on wails.io

This commit is contained in:
Sam Hoffman
2026-01-17 23:03:24 -05:00
parent d66602cc7d
commit 5e71721f4d
74 changed files with 9273 additions and 3670 deletions

41
app/main.go Normal file
View File

@@ -0,0 +1,41 @@
package main
import (
"embed"
"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 fixNvidiaOpenOnX11() {
_ = os.Setenv("WEBKIT_DISABLE_DMABUF_RENDERER", "1")
}
func main() {
// Create an instance of the app structure
fixNvidiaOpenOnX11()
app := NewApp()
// Create application with options
err := wails.Run(&options.App{
Title: "IrChad",
Width: 1024,
Height: 768,
AssetServer: &assetserver.Options{
Assets: assets,
},
BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 1},
OnStartup: app.startup,
Bind: []any{
app,
},
})
if err != nil {
println("Error:", err.Error())
}
}