mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 06:39:30 +08:00
Fix output filename for windows builds
This commit is contained in:
parent
c2fa4b6103
commit
28e31c46c6
@ -274,11 +274,14 @@ func AddBuildSubcommand(app *clir.Cli, w io.Writer) {
|
||||
// target filename
|
||||
switch buildOptions.Platform {
|
||||
case "windows":
|
||||
desiredFilename = fmt.Sprintf("%s-%s.exe", desiredFilename, buildOptions.Arch)
|
||||
desiredFilename = fmt.Sprintf("%s-%s", desiredFilename, buildOptions.Arch)
|
||||
default:
|
||||
desiredFilename = fmt.Sprintf("%s-%s-%s", desiredFilename, buildOptions.Platform, buildOptions.Arch)
|
||||
}
|
||||
}
|
||||
if buildOptions.Platform == "windows" {
|
||||
desiredFilename += ".exe"
|
||||
}
|
||||
buildOptions.OutputFile = desiredFilename
|
||||
|
||||
// Start Time
|
||||
|
@ -545,7 +545,7 @@ func (b *BaseBuilder) BuildFrontend(outputLogger *clilogger.CLILogger) error {
|
||||
// Check there is an 'InstallCommand' provided in wails.json
|
||||
if b.projectData.InstallCommand == "" {
|
||||
// No - don't install
|
||||
outputLogger.Println("No Install command. Skipping.")
|
||||
outputLogger.Println(" - No Install command. Skipping.")
|
||||
} else {
|
||||
// Do install if needed
|
||||
outputLogger.Print(" - Installing frontend dependencies: ")
|
||||
@ -571,7 +571,7 @@ func (b *BaseBuilder) BuildFrontend(outputLogger *clilogger.CLILogger) error {
|
||||
buildCommand = b.projectData.BuildCommand
|
||||
}
|
||||
if buildCommand == "" {
|
||||
outputLogger.Println("No Build command. Skipping.")
|
||||
outputLogger.Println(" - No Build command. Skipping.")
|
||||
// No - ignore
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user