aboutsummaryrefslogtreecommitdiff
path: root/freeze.py
diff options
context:
space:
mode:
authormartin2022-05-01 22:41:20 +0200
committerGitHub2022-05-01 22:41:20 +0200
commit4c5aa37aa6f41d909153a2b7d522db6d7582659a (patch)
tree326aa67921439defcb8c25ea5f770feb63e878a4 /freeze.py
parent4a3ff8bfce622de0e5affa312d50557b5d336371 (diff)
parent820358a79a87b214139eb7693ce80e96be79e3d8 (diff)
Merge pull request #69 from djfun/feature-newgui
GUI Redesign with Component System
Diffstat (limited to 'freeze.py')
-rw-r--r--freeze.py59
1 files changed, 59 insertions, 0 deletions
diff --git a/freeze.py b/freeze.py
new file mode 100644
index 0000000..520b445
--- /dev/null
+++ b/freeze.py
@@ -0,0 +1,59 @@
+from cx_Freeze import setup, Executable
+import sys
+import os
+
+from setup import __version__
+
+
+deps = [os.path.join('src', p) for p in os.listdir('src') if p]
+deps.append('ffmpeg.exe' if sys.platform == 'win32' else 'ffmpeg')
+
+buildOptions = dict(
+ excludes=[
+ "apport",
+ "apt",
+ "curses",
+ "distutils",
+ "email",
+ "html",
+ "http",
+ "xmlrpc",
+ "nose",
+ 'tkinter',
+ ],
+ includes=[
+ "encodings",
+ "json",
+ "filecmp",
+ "numpy.core._methods",
+ "numpy.lib.format",
+ "PyQt5.QtCore",
+ "PyQt5.QtGui",
+ "PyQt5.QtWidgets",
+ "PyQt5.uic",
+ "PIL.Image",
+ "PIL.ImageQt",
+ "PIL.ImageDraw",
+ "PIL.ImageEnhance",
+ ],
+ include_files=deps,
+)
+
+base = 'Win32GUI' if sys.platform == 'win32' else None
+
+executables = [
+ Executable(
+ 'src/main.py',
+ base=base,
+ targetName='audio-visualizer-python'
+ ),
+]
+
+
+setup(
+ name='audio-visualizer-python',
+ version=__version__,
+ description='GUI tool to render visualization videos of audio files',
+ options=dict(build_exe=buildOptions),
+ executables=executables
+)