mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 21:43:19 +08:00
[v2] Enable package by default in wails build
This commit is contained in:
parent
1cd38d12f9
commit
1ee9cf41e2
@ -27,9 +27,9 @@ func AddBuildSubcommand(app *clir.Cli, w io.Writer) {
|
||||
|
||||
command := app.NewSubCommand("build", "Builds the application")
|
||||
|
||||
// Setup pack flag
|
||||
pack := false
|
||||
command.BoolFlag("package", "Create a platform specific package", &pack)
|
||||
// Setup noPackage flag
|
||||
noPackage := false
|
||||
command.BoolFlag("noPackage", "Skips platform specific packaging", &noPackage)
|
||||
|
||||
compilerCommand := "go"
|
||||
command.StringFlag("compiler", "Use a different go compiler to build, eg go1.15beta1", &compilerCommand)
|
||||
@ -148,7 +148,7 @@ func AddBuildSubcommand(app *clir.Cli, w io.Writer) {
|
||||
OutputFile: outputFilename,
|
||||
CleanBuildDirectory: cleanBuildDirectory,
|
||||
Mode: build.Production,
|
||||
Pack: pack,
|
||||
Pack: !noPackage,
|
||||
LDFlags: ldflags,
|
||||
Compiler: compilerCommand,
|
||||
Verbosity: verbosity,
|
||||
|
Loading…
Reference in New Issue
Block a user