add backend dir

This commit is contained in:
2026-07-23 17:31:42 +08:00
parent bc269f91eb
commit 4d1ca8ffaf
10 changed files with 79 additions and 88 deletions
+4 -3
View File
@@ -6,14 +6,15 @@ import (
"github.com/wailsapp/wails/v2"
"github.com/wailsapp/wails/v2/pkg/options"
"github.com/wailsapp/wails/v2/pkg/options/assetserver"
"sortmeow/backend"
)
//go:embed all:frontend/dist
var assets embed.FS
func main() {
// Create an instance of the app structure
app := NewApp()
app := backend.NewApp()
// Create application with options
err := wails.Run(&options.App{
@@ -25,7 +26,7 @@ func main() {
Assets: assets,
},
BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 1},
OnStartup: app.startup,
OnStartup: app.Startup,
Bind: []interface{}{
app,
},