mirror of
https://github.com/taigrr/wails.git
synced 2026-04-17 12:15:02 -07:00
Add -k flag for debug purposes
This commit is contained in:
@@ -53,6 +53,10 @@ func AddBuildSubcommand(app *clir.Cli, w io.Writer) {
|
||||
logFile := ""
|
||||
command.StringFlag("l", "Log to file", &logFile)
|
||||
|
||||
// Retain assets
|
||||
keepAssets := false
|
||||
command.BoolFlag("k", "Kep generated assets", &keepAssets)
|
||||
|
||||
command.Action(func() error {
|
||||
|
||||
// Create logger
|
||||
@@ -87,6 +91,7 @@ func AddBuildSubcommand(app *clir.Cli, w io.Writer) {
|
||||
Platform: platform,
|
||||
LDFlags: ldflags,
|
||||
Compiler: compilerCommand,
|
||||
KeepAssets: keepAssets,
|
||||
}
|
||||
|
||||
return doBuild(buildOptions)
|
||||
|
||||
Reference in New Issue
Block a user