When deployed, a Briefcase Windows app unpacks the Python support package; this includes a copy of python.exe and pythonw.exe. These files are unnecessary, increase the size of the packaged app, and potentially represent a security issue. They should be stripped before packaging.
Steps to reproduce
Generate a windows app
See python.exe and pythonw.exe in the packaged app.
Expected behavior
The Python binaries should be stripped as part of the build process.
Screenshots
No response
Environment
Operating System: Windows
Python version: All
Software versions:
Briefcase: 0.3.12
Logs
n/a
Additional context
The briefcase.toml file on a template can contain a cleanup_paths definition; this allows a template to specify files that should be deleted after the template is rolled out. See the beeware/briefcase-macOS-app-template for an example of usage.
Describe the bug
When deployed, a Briefcase Windows app unpacks the Python support package; this includes a copy of
python.exe
andpythonw.exe
. These files are unnecessary, increase the size of the packaged app, and potentially represent a security issue. They should be stripped before packaging.Steps to reproduce
python.exe
andpythonw.exe
in the packaged app.Expected behavior
The Python binaries should be stripped as part of the build process.
Screenshots
No response
Environment
Logs
n/a
Additional context
The
briefcase.toml
file on a template can contain acleanup_paths
definition; this allows a template to specify files that should be deleted after the template is rolled out. See the beeware/briefcase-macOS-app-template for an example of usage.