feat(m4): verify signed surface bundles across hosts
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
// The Wails M4 comparison host intentionally has no LineUp business logic in
|
||||
// Go. The rendered shell consumes the same host-neutral contract fixture as
|
||||
// Tauri; Go owns only native lifecycle and capability boundaries.
|
||||
package main
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/wailsapp/wails/v3/pkg/application"
|
||||
)
|
||||
|
||||
func newSpikeApplication() *application.App {
|
||||
app := application.New(application.Options{
|
||||
Name: "LineUp Wails Contract Spike",
|
||||
Description: "M4 parity probe; not a production LineUp Host",
|
||||
Assets: application.AssetOptions{Handler: http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
|
||||
w.Header().Set("Content-Type", "text/html; charset=utf-8")
|
||||
_, _ = w.Write([]byte("<!doctype html><meta charset=\"utf-8\"><title>LineUp Wails Contract Spike</title><main>Wails contract spike</main>"))
|
||||
})},
|
||||
})
|
||||
app.Window.NewWithOptions(application.WebviewWindowOptions{
|
||||
Title: "LineUp Wails Contract Spike",
|
||||
URL: "/",
|
||||
})
|
||||
return app
|
||||
}
|
||||
|
||||
func main() {
|
||||
_ = newSpikeApplication().Run()
|
||||
}
|
||||
Reference in New Issue
Block a user