diff --git a/setup_freeze.py b/setup_freeze.py new file mode 100644 index 0000000..368a9a7 --- /dev/null +++ b/setup_freeze.py @@ -0,0 +1,61 @@ +import os +from cx_Freeze import setup, Executable + +base = None + +# Determine the base for the current operating system +if os.name == "posix": + base = "Console" +elif os.name == "nt": + base = "Win32GUI" + +executables = [ + Executable("pospro", base=base) # Reemplaza "pospro.py" con tu script principal +] + +options = { + "build_exe": { + "packages": [ + "app", + "app.printing", + "app.commons", + "app.css", + "app.locale", + "app.tests" + ], + "include_msvcr": True, # Incluye las bibliotecas de tiempo de ejecuciĆ³n de MSVC + } +} + +setup( + name="presik_pos", + version="1.0", # Reemplaza con la versiĆ³n adecuada + description="POS Client for Tryton", + author="Oscar Alvarez", + author_email="gerente@presik.com", + url="www.presik.com", + download_url="http://www.bitbucket.org", + options=options, + executables=executables, + classifiers=[ + "Development Status :: 5 - Production/Stable", + "Environment :: X11 Applications :: Qt", + "Intended Audience :: End Users/Desktop", + "License :: OSI Approved :: GNU General Public License (GPL)", + "Operating System :: OS Independent", + "Natural Language :: English", + "Natural Language :: Spanish", + "Programming Language :: Python3.10", + "Topic :: Office/Business", + ], + license="GPL", + install_requires=[ + "pyusb", + "pillow", + "qrcode", + "paramiko", + "orjson", + "escpos", + "PySide6>=6.4.1" + ] +)