mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 03:52:41 +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>
19 lines
358 B
Go
19 lines
358 B
Go
//go:build !dev && !production && !bindings && (linux || darwin)
|
|
|
|
package app
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/wailsapp/wails/v2/pkg/options"
|
|
)
|
|
|
|
func (a *App) Run() error {
|
|
return nil
|
|
}
|
|
|
|
// CreateApp creates the app!
|
|
func CreateApp(_ *options.App) (*App, error) {
|
|
return nil, fmt.Errorf(`Wails applications will not build without the correct build tags.`)
|
|
}
|