5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-05 05:52:33 +08:00
wails/v3/internal/commands/runtime.go
2024-02-01 21:09:03 +11:00

22 lines
419 B
Go

package commands
import (
"github.com/wailsapp/wails/v3/internal/commands/build_assets/runtime"
"os"
)
type GenerateRuntimeOptions struct {
}
func GenerateRuntime(options *GenerateRuntimeOptions) error {
err := os.WriteFile("runtime.js", runtime.RuntimeJS, 0644)
if err != nil {
return err
}
err = os.WriteFile("runtime.debug.js", runtime.RuntimeDebugJS, 0644)
if err != nil {
return err
}
return nil
}