Skip to content

v2.9.2 can't build runnable .app on macOS when 'name' and 'outputfilename' are different #3786

@tramamte

Description

@tramamte

Description

from v2.9.2, on macOS, wails uses 'outputfilename' value to make a binary file.
But still the CFBundleExecutable is set to {{.Name}} in the Info.plist. So, when 'name' and 'outputfilename' are different, the .app cannot be executed.

Screenshot 2024-09-27 at 1 49 32 PM

The CFBundleExecutable should be set to 'outputfilename'. The 'buildassets', however, only exports 'Name' and 'Info'.
https://github.com/wailsapp/wails/blob/master/v2/pkg/buildassets/buildassets.go#L109

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions