-
-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example of packaging app using cx_Freeze #338
Comments
I got somewhere with this one Windows. Happy to formalize this into a detailed example if needed. Zip Installer is obtained by
MSI Installer is obtained by
#setup.py
from distutils.sysconfig import get_python_lib
from os.path import join
from glob import glob
from cx_Freeze import setup, Executable
# Basically just copy all of the CEF distribution into the installer
# I have only tested this on windows
cefPath = join(get_python_lib(), "cefpython3")
CEF_INCLUDES = glob(join(cefPath, "*"))
CEF_INCLUDES.remove(join(cefPath, "examples"))
setup(
name = "MyAppName",
version = "1.0.0",
options = {
"build_exe": {
'packages': ["os","sys","ctypes","win32con", "json"],
'include_files': CEF_INCLUDES + ['otherResourceFolder'],
'include_msvcr': True,
}},
executables = [Executable("app.py", base="Win32GUI")]
) |
@josephmartin09 In order to thank you, I specially registered this account, you are so powerful! thank you again~ |
This appears to no longer work: |
I got the same error using PyInstaller. |
See https://anthony-tuininga.github.io/cx_Freeze/
See also:
The text was updated successfully, but these errors were encountered: