forked from rockCityMath/OpenNote
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
52 lines (48 loc) · 1.53 KB
/
setup.py
File metadata and controls
52 lines (48 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
from cx_Freeze import setup, Executable
import sys
import os
# Ensure paths are correct for resources (icons, etc.)
icon_path = os.path.join(os.path.dirname(__file__), 'Assets', 'icons', 'OpenNoteLogo.ico')
# Include additional files (e.g., assets, styles, plugins)
build_exe_options = {
"build_exe": "dist",
"include_files": [
"Styles",
"Assets",
"PluginWidgets",
"Saves",
],
"includes": [
"cx_Freeze", "cx_Logging", "lief", #"MouseInfo"
"numpy", #"opencv-python",
"packaging", #"pillow",
#"PyAutoGUI"
#"PyGetWindow"
#"PyMsgBox"
"pyperclip",
#"PyRect"
#"PyScreeze"
"PySide6",
"pytweening", "shiboken6"
],
"packages": [
"os", "sys", "json", "cv2", "numpy", "shiboken6", "PySide6",
"PySide6.QtCore", "PySide6.QtGui", "PySide6.QtWidgets",
],
"zip_include_packages": ["numpy", "opencv-python", "pillow", "PySide6"], # Include large packages in the zip
"zip_exclude_packages": ["PyQt5"],
}
# base="Win32GUI" should be used only for Windows GUI app
base = "Win32GUI" if sys.platform == "win32" else None
# Setup for the executable
setup(
name="OpenNote",
version="1.0.0",
description="An open source, extensible, cross-platform note-taking application",
options={"build_exe": build_exe_options},
executables=[Executable("main.py",
base=base,
target_name="OpenNote",
icon=icon_path
)],
)