Switch remote deploy to vendored source builds
Move remote deployment to a vendored source bundle built on the target host via Docker so redeploys no longer require local cross-compilation or host Go installation. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
25
vendor/github.com/wailsapp/wails/v2/internal/wv2installer/browser.go
generated
vendored
Normal file
25
vendor/github.com/wailsapp/wails/v2/internal/wv2installer/browser.go
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
//go:build windows && wv2runtime.browser
|
||||
// +build windows,wv2runtime.browser
|
||||
|
||||
package wv2installer
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/wailsapp/wails/v2/internal/webview2runtime"
|
||||
"github.com/wailsapp/wails/v2/pkg/options/windows"
|
||||
)
|
||||
|
||||
func doInstallationStrategy(installStatus installationStatus, messages *windows.Messages) error {
|
||||
confirmed, err := webview2runtime.Confirm(messages.DownloadPage+MinimumRuntimeVersion, messages.MissingRequirements)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if confirmed {
|
||||
err = webview2runtime.OpenInstallerDownloadWebpage()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return fmt.Errorf(messages.FailedToInstall)
|
||||
}
|
||||
Reference in New Issue
Block a user