5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 21:10:54 +08:00
This commit is contained in:
Lea Anthony 2022-02-01 19:47:46 +11:00
parent 4afbf00e45
commit 4d0b0947d2

View File

@ -412,6 +412,9 @@ func (b *BaseBuilder) CompileProject(options *Options) error {
}
func generateRuntimeWrapper(options *Options) error {
if options.WailsJSDir == "" {
options.WailsJSDir = filepath.Join("./frontend")
}
wrapperDir := filepath.Join(options.WailsJSDir, "wailsjs", "runtime")
_ = os.RemoveAll(wrapperDir)
extractor := gosod.New(wrapper.RuntimeWrapper)