-
Notifications
You must be signed in to change notification settings - Fork 0
/
freeze.py
40 lines (35 loc) · 918 Bytes
/
freeze.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
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import sys
from cx_Freeze import setup, Executable
from setupcommon import setupdata
base = "Win32GUI" if sys.platform == "win32" else None
build_exe_options = {
"excludes": ["tkinter"],
"zip_includes": [
# Tuple source/dest file, otherwise they end up in wrong directories
("dc/interface/static/short_help.html",
"dc/interface/static/short_help.html"),
],
}
bdist_msi_options = {
"add_to_path": False,
"upgrade_code": "{ce110df4-67c4-43f4-bfa6-fcfd1ac11378}",
}
executables = [
Executable(
"scripts/dc-reloaded",
base=base,
icon="resource-files/cpu.ico",
shortcutName="DC reloaded",
shortcutDir="ProgramMenuFolder",
),
]
setup(
executables=executables,
options={
"build_exe": build_exe_options,
"bdist_msi": bdist_msi_options,
},
**setupdata
)