mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
Reduce output of prod build by ~30%
This commit is contained in:
@@ -70,7 +70,14 @@ func BuildApplication(binaryName string, forceRebuild bool, buildMode string) er
|
||||
buildCommand.Add("-a")
|
||||
}
|
||||
|
||||
buildCommand.AddSlice([]string{"-ldflags", "-X github.com/wailsapp/wails.BuildMode=" + buildMode})
|
||||
// Setup ld flags
|
||||
ldflags := "-w -s "
|
||||
if buildMode == "debug" {
|
||||
ldflags = ""
|
||||
}
|
||||
ldflags += "-X github.com/wailsapp/wails.BuildMode=" + buildMode
|
||||
|
||||
buildCommand.AddSlice([]string{"-ldflags", ldflags})
|
||||
err := NewProgramHelper().RunCommandArray(buildCommand.AsSlice())
|
||||
if err != nil {
|
||||
packSpinner.Error()
|
||||
|
||||
@@ -2,4 +2,4 @@ package cmd
|
||||
|
||||
// Version - Wails version
|
||||
// ...oO(There must be a better way)
|
||||
const Version = "v0.7.2"
|
||||
const Version = "v0.8.0"
|
||||
|
||||
Reference in New Issue
Block a user