-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
29 lines (26 loc) · 766 Bytes
/
setup.py
File metadata and controls
29 lines (26 loc) · 766 Bytes
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
# setup.py
from setuptools import setup
import os
APP = ['realesrgan_gui.py'] # Main application file
DATA_FILES = [
('assets', 'assets'), # Ensures assets folder is included
('realesrgan', 'realesrgan'), # Include the entire realesrgan folder
('realesrgan/models', 'realesrgan/models'), # Include the models folder
]
OPTIONS = {
'argv_emulation': True,
'packages': [],
'excludes': [],
'iconfile': 'assets/magic-wand.ico', # Path to your icon file
}
# Include the Real-ESRGAN executable
binaries = [
('realesrgan/realesrgan-ncnn-vulkan.exe', 'realesrgan'), # Path for Windows executable
]
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
binaries=binaries,
)