-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·47 lines (43 loc) · 1.39 KB
/
setup.py
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
from cx_Freeze import setup, Executable
import os.path
PYTHON_INSTALL_DIR = os.path.dirname(os.path.dirname(os.__file__))
os.environ['TCL_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tcl8.6')
os.environ['TK_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tk8.6')
include_files = [
('LICENSE', 'LICENSE'),
('README.md', 'README.md'),
('res/album_art.png', 'res/album_art.png'),
('res/btn_next.png', 'res/btn_next.png'),
('res/btn_pause.png', 'res/btn_pause.png'),
('res/btn_play.png', 'res/btn_play.png'),
('res/btn_prev.png', 'res/btn_prev.png'),
('res/btn_rand.png', 'res/btn_rand.png'),
('config.ini', 'config.ini'),
os.path.join(PYTHON_INSTALL_DIR, 'DLLs', 'tk86t.dll'),
os.path.join(PYTHON_INSTALL_DIR, 'DLLs', 'tcl86t.dll')
]
executables = [
Executable(
"foobar_miniplayer.py",
base="Win32GUI",
targetName="Foobar Miniplayer.exe",
icon="icon.ico"
)
]
options = {
'build_exe': {
'packages': [
"os", "PIL", "mutagen", "win32com", "win32gui",
"win32con", "win32api", "tkinter", "numpy"
],
'optimize': 2,
'include_files': include_files
}
}
setup(
options=options,
name="Foobar Miniplayer",
version="0.1.0",
description="Small COM GUI for Foobar 2000",
executables=executables
)