kirkpatrickprice / PIIDigger

Program to identify Personally Identifiable Information in common file types
Apache License 2.0
2 stars 0 forks source link

Windows packaging with Embedded Python #26

Closed flyguy62n closed 2 days ago

flyguy62n commented 1 week ago

Problem

PyInstaller packaging method triggers false positives on VirusTotal. Alternate methods -- such as using Py2EXE or Nuitka don't completely solve the problem.

Use Case

As a PIIDigger, common anti-virus programs should not trigger a potential virus alert.

Requirements

Packaging should be accomplished with Embedded Python. An alternate build_windows_embedded.ps1 script will be used to package all of the necessary dependencies from the .venv\Lib\site-packages folder along with the PIIDigger Python source and the Python embedded runtime binaries. A launcher script (piidigger.cmd) will be used to launch PIIDigger from the correct path.

Inputs

build_windows_embedded.ps1 will receive the following variables when called from the command line:

Outputs

A completed dist\piidigger-<arch> folder will contain PIIDigger and all necessary dependencies. GitHub Actions will prepare this folder as piidigger-<arch>.zip.