From e941f36267e9d06fe8fe31b60967b9918ca407a5 Mon Sep 17 00:00:00 2001 From: Alex Pliutau Date: Sat, 20 Jul 2024 00:50:16 +0200 Subject: [PATCH] #3200: Use OutputFilename instead of Name (#3551) * Use OutputFilename instead of Name * #3200: add changelog entry --------- Co-authored-by: Lea Anthony --- v2/pkg/commands/build/packager.go | 4 ++-- website/src/pages/changelog.mdx | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/v2/pkg/commands/build/packager.go b/v2/pkg/commands/build/packager.go index b58cbbdf3..d406256f9 100644 --- a/v2/pkg/commands/build/packager.go +++ b/v2/pkg/commands/build/packager.go @@ -83,10 +83,10 @@ func packageApplicationForDarwin(options *Options) error { return err } // Copy binary - packedBinaryPath := filepath.Join(exeDir, options.ProjectData.Name) + packedBinaryPath := filepath.Join(exeDir, options.ProjectData.OutputFilename) err = fs.MoveFile(options.CompiledBinary, packedBinaryPath) if err != nil { - return errors.Wrap(err, "Cannot move file: "+options.ProjectData.OutputFilename) + return errors.Wrap(err, "Cannot move file: "+options.CompiledBinary) } // Generate Info.plist diff --git a/website/src/pages/changelog.mdx b/website/src/pages/changelog.mdx index c268032f1..e0474c1f1 100644 --- a/website/src/pages/changelog.mdx +++ b/website/src/pages/changelog.mdx @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Fixed +- Fixed MacOS build to use `outputfilename` from wails.json. [#3200](https://github.com/wailsapp/wails/issues/3200) - Fixed file drop events on windows. Fixed in [PR](https://github.com/wailsapp/wails/pull/3595) by @FrancescoLuzzi + Fixed file drop events on Windows in [PR](https://github.com/wailsapp/wails/pull/3595) by @FrancescoLuzzi