CEngine (Convert Engine)
This is an open-source converter for python to create exe from py. CEngine creates automatically virtualenv and installs the packages, and deletes unnecessary files after the build is complete.
- It's using PyInstaller or Nuitka to create exe.
- It's better because the executable is smaller (less bytes) and,
- CEngine starts a cleaning proccess and deletes the dist, build, *.spec files/directories after the build is complete.
1.0.8 (01/01/2022):
- Added
-b
|--windows-defender-bypass
option. - Solved issues, cleaned code.
- Code optionalization.
More in changelog.txt
- Creates a virtualenv.
- Analyzes the target script to get the imports.
- Installs the packages with pip.
- Starts pyinstaller or nuitka.
Virtualenv create processs and analyze proccess 👆
usage: cengine.py [-h] [--nuitka] [-s SCRIPT] [-n NAME] [-b] [--add-imports ADD_IMPORTS [ADD_IMPORTS ...]]
[--force-platform FORCE_PLATFORM] [--clean]
options:
-h, --help show this help message and exit
--nuitka Change from pyinstaller to nuitka compiler.
-s SCRIPT, --script SCRIPT, --file SCRIPT
Define a script to be made into an executable.
-n NAME, --name NAME Define the script name.
-b, --windows-defender-bypass
Bypass windows defeneder with base64 encode/decode.
--add-imports ADD_IMPORTS [ADD_IMPORTS ...]
Add more imports.
--force-platform FORCE_PLATFORM
Add custom arguments.
--clean Clean failed builds.
Convert:
- cengine --script cengine.py --name cengine --icon NONE --version-file cengine.version
- cengine --nuitka --script cengine.py --name cengine
Clean:
- cengine --script cengine.py --clean
- cengine --nuitka --script cengine.py --clean