5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-04 10:29:36 +08:00

[v2] Enable package by default in wails build

This commit is contained in:
Lea Anthony 2021-09-03 18:55:24 +10:00
parent 1cd38d12f9
commit 1ee9cf41e2

View File

@ -27,9 +27,9 @@ func AddBuildSubcommand(app *clir.Cli, w io.Writer) {
command := app.NewSubCommand("build", "Builds the application") command := app.NewSubCommand("build", "Builds the application")
// Setup pack flag // Setup noPackage flag
pack := false noPackage := false
command.BoolFlag("package", "Create a platform specific package", &pack) command.BoolFlag("noPackage", "Skips platform specific packaging", &noPackage)
compilerCommand := "go" compilerCommand := "go"
command.StringFlag("compiler", "Use a different go compiler to build, eg go1.15beta1", &compilerCommand) 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, OutputFile: outputFilename,
CleanBuildDirectory: cleanBuildDirectory, CleanBuildDirectory: cleanBuildDirectory,
Mode: build.Production, Mode: build.Production,
Pack: pack, Pack: !noPackage,
LDFlags: ldflags, LDFlags: ldflags,
Compiler: compilerCommand, Compiler: compilerCommand,
Verbosity: verbosity, Verbosity: verbosity,