mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-04 07:29:56 +08:00
23 lines
536 B
Go
23 lines
536 B
Go
package commands
|
|
|
|
import (
|
|
"github.com/wailsapp/wails/v3/internal/term"
|
|
"os"
|
|
|
|
"github.com/wailsapp/wails/v3/internal/flags"
|
|
)
|
|
|
|
func Build(_ *flags.Build) error {
|
|
return wrapTask("build")
|
|
}
|
|
|
|
func Package(_ *flags.Package) error {
|
|
return wrapTask("package")
|
|
}
|
|
|
|
func wrapTask(command string) error {
|
|
term.Warningf("`wails3 %s` is an alias for `wails3 task %s`. Use `wails task` for better control and more options.\n", command, command)
|
|
os.Args = []string{"wails3", "task", command}
|
|
return RunTask(&RunTaskOptions{}, []string{})
|
|
}
|