java-inventory can be packaged as a standalone executable with PyInstaller.
python package.pyThe build:
- Creates
.venvwhen needed. - Installs PyInstaller in the build environment.
- Runs
python java_inventory.py setup. - Verifies the required Java artifacts.
- Packages the application and resources.
Output:
dist/java-inventoryOn Windows:
dist\java-inventory.exeRun the packaged binary with:
./dist/java-inventory --helpWindows:
dist\java-inventory.exe --helpSkip cleanup:
python package.py --no-cleanupUse another PyInstaller spec:
python package.py --spec path/to/custom.specEnable debug output:
python package.py --debugPyInstaller produces a native executable for the platform where it runs. Build separately on each target platform.
Official releases use GitHub Actions to build platform-specific binaries and attach them to GitHub Releases.
The packaging environment requires Python, a JDK, and Maven because setup builds the Java components used by the application.