Skip to content

How to generate a macOS windowed app (BUNDLE) in spec file? #8444

Answered by rokm
joncox123 asked this question in Help
Discussion options

You must be logged in to vote

Hmm, the part of docs you linked is actually outdated - you should not be generating BUNDLE from exe, unless you are trying to create a onefile .app bundle (which you should not).

Instead, you should pass instance of COLLECT (coll) to the BUNDLE:

...

coll = COLLECT(...)

app = BUNDLE(
    coll,
    name='myscript.app',
    icon=None,
    bundle_identifier=None,
)

The most surefire way to find this out would be to use command-line to generate a sample spec for you, even if you don't want to use command-line later on...


but it does not say what to do with this

It will generate myscript.app in the dist directory, in addition to the POSIX executable.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@joncox123
Comment options

Answer selected by joncox123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants