mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 16:52:07 +08:00
[v2, build] Bug fix collecting of output binaries for platforms (#1715)
This commit is contained in:
parent
ba11e5c6d6
commit
c13c4a29f5
@ -330,11 +330,10 @@ func AddBuildSubcommand(app *clir.Cli, w io.Writer) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !dryRun {
|
if !dryRun {
|
||||||
|
|
||||||
// Start Time
|
// Start Time
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
|
|
||||||
outputFilename, err := build.Build(buildOptions)
|
compiledBinary, err := build.Build(buildOptions)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Println("Error: %s", err.Error())
|
logger.Println("Error: %s", err.Error())
|
||||||
targetErr = err
|
targetErr = err
|
||||||
@ -345,11 +344,12 @@ func AddBuildSubcommand(app *clir.Cli, w io.Writer) {
|
|||||||
buildOptions.CleanBuildDirectory = false
|
buildOptions.CleanBuildDirectory = false
|
||||||
|
|
||||||
// Output stats
|
// Output stats
|
||||||
buildOptions.Logger.Println(fmt.Sprintf("Built '%s' in %s.\n", outputFilename, time.Since(start).Round(time.Millisecond).String()))
|
buildOptions.Logger.Println(fmt.Sprintf("Built '%s' in %s.\n", compiledBinary, time.Since(start).Round(time.Millisecond).String()))
|
||||||
|
|
||||||
|
outputBinaries[buildOptions.Platform+"/"+buildOptions.Arch] = compiledBinary
|
||||||
} else {
|
} else {
|
||||||
logger.Println("Dry run: skipped build.")
|
logger.Println("Dry run: skipped build.")
|
||||||
}
|
}
|
||||||
outputBinaries[buildOptions.Platform+"/"+buildOptions.Arch] = outputFilename
|
|
||||||
})
|
})
|
||||||
|
|
||||||
if targetErr != nil {
|
if targetErr != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user