beeware / briefcase

Tools to support converting a Python project into a standalone native application.
https://briefcase.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
2.66k stars 372 forks source link

Ask user if the app is a console app during conversion #1900

Open rmartin16 opened 4 months ago

rmartin16 commented 4 months ago

What is the problem or limitation you are having?

Before I really understood the "console app" settings, I was a bit confused when my app wouldn't run following conversion. I finally realized that console apps require the console_app = true key to control stdout properly. After adding that setting, my app started working.

Describe the solution you'd like

During the conversion process, ask the user if the existing app is a console app and configure pyproject.toml appropriately.

Describe alternatives you've considered

Manually add the console app settings.

Additional context

No response

freakboy3742 commented 4 months ago

Makes sense - it's a step that is implied when you pick a GUI framework, but conversion of an existing project needs that extra context.

It should be relatively straightforward to add an extra question during the convert command, mirroring the location in the wizard where you'd ask for the GUI framework.