$ account nwutils
Web2Executable is a desktop application (with a CLI companion) that packages web applications—HTML, JavaScript, Node.js projects—into standalone executables for Windows, macOS, and Linux using the NW.js runtime. The GUI is built with PySide6 (Qt) and auto-generated from a declarative settings file (`files/settings.cfg`), providing tabs for app configuration, window properties, export targets, compression, and download management. The CLI (`command_line.py`) mirrors the GUI functionality and is the primary entry point for automation. Under the hood, it downloads NW.js binaries from the official site, copies user project files (with whitelist/blacklist filtering), optionally replaces the executable icon using custom PE and ICNS parsers (`pe.py`, `image_utils/`), and compresses the output with UPX. The architecture is a single-process monolith with a background thread pattern for non-blocking operations. While the tool is functional and has seen real use (974 stars), it is in maintenance mode with best-effort fixes, and parts of the codebase show age (e.g., custom implementations of ICNS/PNG format readers, reliance on specific NW.js version URLs, and fragile build scripts). Key reusable components include the dynamic configuration class (`Setting`), the file tree filter (`FileTree`), and the background worker (`BackgroundThread`), which could be extracted for other Qt-based projects.