mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 02:30:48 +08:00

* Application refactor * [windows] refactor out main loop. Create new application struct. Refactor assethandler/assetserver signatures. * Refactor darwin app * Refactor app for linux * Update v2/internal/frontend/assetserver/assethandler.go Co-authored-by: stffabi <stffabi@users.noreply.github.com> * Update v2/internal/frontend/assetserver/assethandler.go Co-authored-by: stffabi <stffabi@users.noreply.github.com> * Update v2/internal/frontend/assetserver/assetserver.go Co-authored-by: stffabi <stffabi@users.noreply.github.com> * Update v2/internal/frontend/assetserver/assetserver.go Co-authored-by: stffabi <stffabi@users.noreply.github.com> Co-authored-by: stffabi <stffabi@users.noreply.github.com>
16 lines
509 B
Go
16 lines
509 B
Go
// Package wails is the main package of the Wails project.
|
|
// It is used by client applications.
|
|
package wails
|
|
|
|
import (
|
|
_ "github.com/wailsapp/wails/v2/internal/goversion" // Add Compile-Time version check for minimum go version
|
|
"github.com/wailsapp/wails/v2/pkg/application"
|
|
"github.com/wailsapp/wails/v2/pkg/options"
|
|
)
|
|
|
|
// Run creates an application based on the given config and executes it
|
|
func Run(options *options.App) error {
|
|
mainApp := application.NewWithOptions(options)
|
|
return mainApp.Run()
|
|
}
|