beeware / briefcase-windows-VisualStudio-template

A template for generating Visual Studio projects for building Windows apps with Briefcase
MIT License
4 stars 9 forks source link

Packaged windows app includes unnecessary support artefacts #7

Open freakboy3742 opened 1 year ago

freakboy3742 commented 1 year ago

Describe the bug

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

  1. Generate a windows app
  2. 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

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.