Skip to content
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

Open
cztomczak opened this issue Mar 25, 2017 · 4 comments
Open

Example of packaging app using cx_Freeze #338

cztomczak opened this issue Mar 25, 2017 · 4 comments

Comments

@cztomczak cztomczak changed the title Example of packaging using cx_Freeze Example of packaging app using cx_Freeze Mar 25, 2017
@josephmartin09
Copy link

josephmartin09 commented Jun 19, 2018

I got somewhere with this one Windows. Happy to formalize this into a detailed example if needed.

Zip Installer is obtained by

python setup.py bdist

MSI Installer is obtained by

python setup.py bdist_msi
#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")]
)

@846948768
Copy link

@josephmartin09 In order to thank you, I specially registered this account, you are so powerful! thank you again~

@Berserker66
Copy link

This appears to no longer work:
[0511/153708.613:ERROR:icu_util.cc(172)] Invalid file descriptor to ICU data received.
Completely deleting icudtl.dat gives the same error. Likely the path to the file is build in an incompatible way.

@FeralFox
Copy link

FeralFox commented Feb 17, 2022

This appears to no longer work:
[0511/153708.613:ERROR:icu_util.cc(172)] Invalid file descriptor to ICU data received.

I got the same error using PyInstaller.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants