mirror of
https://github.com/taigrr/wails.git
synced 2026-04-14 10:50:53 -07:00
remove "'" around ldflags
The single quote is needed for running the command in the shell directly. When run inside the Go command 'os/exec' it is not removed and is preventing the flags from being processed correctly inside the Docker image.
This commit is contained in:
committed by
Lea Anthony
parent
76edc7976e
commit
8405ce37f9
@@ -149,7 +149,7 @@ func BuildApplication(binaryName string, forceRebuild bool, buildMode string, pa
|
||||
}()
|
||||
|
||||
// Setup ld flags
|
||||
ldflags := "'-w -s "
|
||||
ldflags := "-w -s "
|
||||
if buildMode == BuildModeDebug {
|
||||
ldflags = ""
|
||||
}
|
||||
@@ -170,7 +170,6 @@ func BuildApplication(binaryName string, forceRebuild bool, buildMode string, pa
|
||||
filename := filepath.Join(cwd, projectOptions.FrontEnd.Dir, projectOptions.typescriptDefsFilename)
|
||||
ldflags += " -X github.com/wailsapp/wails/lib/binding.typescriptDefinitionFilename=" + filename
|
||||
}
|
||||
ldflags += "'"
|
||||
|
||||
buildCommand := slicer.String()
|
||||
if projectOptions.CrossCompile {
|
||||
|
||||
Reference in New Issue
Block a user