mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 08:10:56 +08:00
bugfix : fix error on building runnable .app on MacOS when 'name' and 'outputfilename' are different. (#3789)
* mod : added OutputFilename field to assetData \n mod : modified resolveProjectData to export OutputFilename \n mod : modified CFBundleExecutable values to .OutputFilename in info.dev.plist, info.plist * mod : update changelog.mdx --------- Co-authored-by: nick-bae <nick.bae@ddkakaoenterprise.com>
This commit is contained in:
parent
429e94f4ce
commit
bd2c1ea73f
@ -6,7 +6,7 @@
|
||||
<key>CFBundleName</key>
|
||||
<string>{{.Info.ProductName}}</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>{{.Name}}</string>
|
||||
<string>{{.OutputFilename}}</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.wails.{{.Name}}</string>
|
||||
<key>CFBundleVersion</key>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<key>CFBundleName</key>
|
||||
<string>{{.Info.ProductName}}</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>{{.Name}}</string>
|
||||
<string>{{.OutputFilename}}</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.wails.{{.Name}}</string>
|
||||
<key>CFBundleVersion</key>
|
||||
|
@ -102,8 +102,9 @@ func ReadOriginalFileWithProjectDataAndSave(projectData *project.Project, file s
|
||||
}
|
||||
|
||||
type assetData struct {
|
||||
Name string
|
||||
Info project.Info
|
||||
Name string
|
||||
Info project.Info
|
||||
OutputFilename string
|
||||
}
|
||||
|
||||
func resolveProjectData(content []byte, projectData *project.Project) ([]byte, error) {
|
||||
@ -113,8 +114,9 @@ func resolveProjectData(content []byte, projectData *project.Project) ([]byte, e
|
||||
}
|
||||
|
||||
data := &assetData{
|
||||
Name: projectData.Name,
|
||||
Info: projectData.Info,
|
||||
Name: projectData.Name,
|
||||
Info: projectData.Info,
|
||||
OutputFilename: projectData.OutputFilename,
|
||||
}
|
||||
|
||||
var out bytes.Buffer
|
||||
|
@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- Fixed dialogs in Windows when using Go 1.23 in [PR](https://github.com/wailsapp/wails/pull/3707) by [@leaanthony](https://github.com/leaanthony)
|
||||
- More syscall fixes for Go 1.23 support in [PR](https://github.com/wailsapp/wails/pull/3713) by [@leaanthony](https://github.com/leaanthony)
|
||||
- Fixed drag and drop missing cursor icon [PR](https://github.com/wailsapp/wails/pull/3703) by [@mrf345](https://github.com/mrf345)
|
||||
- Fixed a build error on macOS that occurred when the `outputfilename` and `name` fields in wails.json were different. Fixed in [PR](https://github.com/wailsapp/wails/pull/3789) by [@nickisworking](https://github.com/nickisworking)
|
||||
|
||||
### Changed
|
||||
- Modified docs to reflect the correct password syntax for the `gon-sign.json` file [PR](https://github.com/wailsapp/wails/pull/3620) by [@ignasbernotas](github.com/ignasbernotas)
|
||||
|
Loading…
Reference in New Issue
Block a user