-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsshdrando.spec
89 lines (76 loc) · 1.96 KB
/
sshdrando.spec
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# -*- mode: python ; coding: utf-8 -*-
import os
import glob
from constants.randoconstants import VERSION
block_cipher = None
def build_datas_recursive(paths):
datas = []
for path in paths:
for filename in glob.iglob(path, recursive=True):
dest_dirname = os.path.dirname(filename)
if dest_dirname == "":
dest_dirname = "."
data_entry = (filename, dest_dirname)
datas.append(data_entry)
# print(data_entry)
return datas
a = Analysis(
["sshdrando.py"],
pathex=[],
binaries=[],
datas=build_datas_recursive(
[
"asm/*.*", # includes assemble.py but it shouldn't matter
"asm/additions/diffs/*.yaml",
"asm/patches/diffs/*.yaml",
"assets/**/*",
"data/**/*",
"gui/custom_themes/**/*",
"plandomizers/**/*",
"presets/**/*",
"sshd_extract/README.md",
"*.md",
"LICENSE",
]
),
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
)
pyz = PYZ(
a.pure,
a.zipped_data,
cipher=block_cipher,
)
exe = EXE(
pyz,
a.scripts,
[
("--nogui", None, "OPTION"),
],
a.binaries,
a.datas,
name=f"Skyward Sword HD Randomizer {VERSION}",
debug=False,
strip=False,
upx=True,
runtime_tmpdir=None,
console=False,
icon="assets/icon.png", # causes the exe to get flagged as a trojan :/
)
app = BUNDLE(
exe,
name=f"Skyward Sword HD Randomizer {VERSION}.app",
icon="assets/icon.png",
bundle_identifier=None,
info_plist={
"LSBackgroundOnly": False,
"CFBundleDisplayName": "Skyward Sword HD Randomizer",
"CFBundleName": "SSHD Randomizer", # 15 character maximum
"CFBundleShortVersionString": VERSION,
},
)