Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1.17 KB

File metadata and controls

50 lines (37 loc) · 1.17 KB

Building the Executable

Prerequisites

Install PyInstaller:

pip install pyinstaller

Build Instructions

Option 1: Using the spec file (Recommended)

pyinstaller font_scanner_gui.spec

Option 2: Direct build command

pyinstaller --onefile --windowed --name OfficeFontScanner --hidden-import olefile font_scanner_gui.py

Output

The executable will be created in the dist folder:

  • dist/OfficeFontScanner.exe - Single executable file

Distribution

Simply distribute the OfficeFontScanner.exe file. Users can run it without Python installed.

Optional: Add an Icon

  1. Get a .ico file (256x256 or 128x128 recommended)
  2. Save it as icon.ico in this folder
  3. In font_scanner_gui.spec, change:
    icon=None,
    to:
    icon='icon.ico',
  4. Rebuild with pyinstaller font_scanner_gui.spec

Notes

  • The executable is about 15-20MB (includes Python runtime and dependencies)
  • First launch might be slightly slower (Windows security scanning)
  • Antivirus software may flag it initially (common with PyInstaller executables)
  • To reduce false positives, consider code signing the executable