First real commit. Setting up for full CI/CD and testing pipeline
This commit is contained in:
46
main.go
Normal file
46
main.go
Normal file
@@ -0,0 +1,46 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"embed"
|
||||
|
||||
"github.com/wailsapp/wails/v2"
|
||||
"github.com/wailsapp/wails/v2/pkg/options"
|
||||
"github.com/wailsapp/wails/v2/pkg/options/assetserver"
|
||||
|
||||
"fast_reader/app"
|
||||
)
|
||||
|
||||
//go:embed all:frontend/dist
|
||||
var assets embed.FS
|
||||
|
||||
func main() {
|
||||
application := app.NewApp()
|
||||
|
||||
err := wails.Run(&options.App{
|
||||
Title: "Fast Reader Training",
|
||||
Width: 1000,
|
||||
Height: 700,
|
||||
MinWidth: 700,
|
||||
MinHeight: 500,
|
||||
|
||||
AssetServer: &assetserver.Options{
|
||||
Assets: assets,
|
||||
},
|
||||
|
||||
BackgroundColour: &options.RGBA{
|
||||
R: 18,
|
||||
G: 18,
|
||||
B: 24,
|
||||
A: 1,
|
||||
},
|
||||
|
||||
OnStartup: application.Startup,
|
||||
Bind: []interface{}{
|
||||
application,
|
||||
},
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
println("Error:", err.Error())
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user