Install PyInstaller:
pip install pyinstallerpyinstaller font_scanner_gui.specpyinstaller --onefile --windowed --name OfficeFontScanner --hidden-import olefile font_scanner_gui.pyThe executable will be created in the dist folder:
dist/OfficeFontScanner.exe- Single executable file
Simply distribute the OfficeFontScanner.exe file. Users can run it without Python installed.
- Get a
.icofile (256x256 or 128x128 recommended) - Save it as
icon.icoin this folder - In
font_scanner_gui.spec, change:to:icon=None,
icon='icon.ico',
- Rebuild with
pyinstaller font_scanner_gui.spec
- 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