forked from Faraphel/Atlas-Install
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
50 lines (44 loc) · 1.1 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
48
49
50
from cx_Freeze import setup, Executable
import sys
import json
include_files = [
"./icon.ico",
"./LICENSE",
"./README.md",
"./version",
"./translation.json",
"./assets",
"./tools",
sys.exec_prefix + "\\DLLs\\tcl86t.dll",
sys.exec_prefix + "\\DLLs\\tk86t.dll",
]
options = {
"build_exe": {
"include_files": include_files,
"includes": ["tkinter", "requests", "PIL", "distutils"],
"include_msvcr": True,
"packages": ["tkinter", "distutils"],
}
}
with open("./version") as f:
version = json.load(f)
setup(
options=options,
name='MKWF-Install',
version=version["version"],
url='https://github.com/Faraphel/MKWF-Install',
license='Apache-2.0',
author='Faraphel',
author_email='[email protected]',
description='Mario Kart Wii Mod Installer.',
executables=[
Executable(
"./main.pyw",
icon="./icon.ico",
base="win32gui",
target_name="MKWF-Install.exe",
shortcut_name="MKWF-Install",
shortcut_dir="DesktopFolder"
)
],
)