-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
41 lines (35 loc) · 863 Bytes
/
setup.py
File metadata and controls
41 lines (35 loc) · 863 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
30
31
32
33
34
35
36
37
38
39
40
41
import sys
from cx_Freeze import setup, Executable
import requests.certs
from plexdesktop import __version__
NAME = 'plexdesktop'
VERSION = __version__
DESCRIPTION = 'Plex Desktop Client'
EXE = NAME
base = None
if sys.platform == "win32":
base = "Win32GUI"
EXE += '.exe'
options = {
'build_exe': {
'packages': ['sqlite3'],
'excludes': ['tkinter'],
"include_files": [
(requests.certs.where(), 'cacert.pem'),
#('mpv-1.dll', 'mpv-1.dll'),
('mpv', 'mpv'),
('resources', 'resources'),
],
'optimize': 2
}
}
executables = [
Executable('main.py', base=base, targetName=EXE, icon='icon.ico')
]
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
options=options,
executables=executables
)