Initial commit

This commit is contained in:
arhat0307
2026-06-26 00:06:07 +09:00
commit 75f9c5d7d4
108 changed files with 10256 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
package main
import (
"embed"
"log"
"github.com/wailsapp/wails/v3/pkg/application"
)
//go:embed all:frontend/dist
var assets embed.FS
func main() {
service := NewAppService()
app := application.New(application.Options{
Name: "OPIc Flow",
Description: "AI voice practice for the OPIc speaking test",
Services: []application.Service{
application.NewService(service),
},
Assets: application.AssetOptions{
Handler: application.AssetFileServerFS(assets),
},
Mac: application.MacOptions{
ApplicationShouldTerminateAfterLastWindowClosed: true,
},
})
app.Window.NewWithOptions(application.WebviewWindowOptions{
Title: "OPIc Flow",
Width: 1280,
Height: 820,
MinWidth: 980,
MinHeight: 680,
BackgroundColour: application.NewRGB(246, 247, 243),
URL: "/",
})
if err := app.Run(); err != nil {
log.Fatal(err)
}
}