-
Notifications
You must be signed in to change notification settings - Fork 3
/
vroid2pmx.spec
68 lines (58 loc) · 2.76 KB
/
vroid2pmx.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
# -*- coding: utf-8 -*-
# -*- mode: python -*-
# Vroid2Pmx 64bit版
exclude_keys = ['mkl', 'tkinter', 'win32comgenpy', 'traitlets', 'IPython', 'pydoc', 'lib2to3', 'pygments', 'matplotlib', 'libopenblas64']
exclude_dlls = ['mfc140u.dll', 'libcrypto-1_1-x64.dll', 'libssl-1_1-x64.dll', '_multiarray_umath.cp39-win_amd64.pyd', '_multiarray_tests.cp38-win_amd64.pyd', '_multiarray_tests.cp39-win_amd64.pyd']
include_dlls = []
def remove_from_list(input):
outlist = []
for item in sorted(input):
name, _, _ = item
flag = 0
for exclude_key in exclude_keys:
if (exclude_key in name or name in exclude_dlls) and name not in include_dlls:
flag = 1
print(f"{' OK ' if not flag else '*NG*'} [{name}] = {flag}")
if flag != 1:
outlist.append(item)
return outlist
a = Analysis(['src\\executor.py'],
pathex=['src'],
binaries=[],
datas=[('src\\vroid2pmx.ico', 'src'), ('.\\src\\resources\\cheek_dye.png', 'src\\resources'), ('.\\src\\resources\\eye_heart.png', 'src\\resources'), ('.\\src\\resources\\eye_star.png', 'src\\resources'), ('.\\src\\resources\\hair_sphere.png', 'src\\resources'), ('.\\src\\resources\\eye_hau.png', 'src\\resources'), ('.\\src\\resources\\eye_hachume.png', 'src\\resources'), ('.\\src\\resources\\eye_nagomi.png', 'src\\resources'), ('.\\src\\locale\\en_US\\messages.json', 'src\\locale\\en_US'), ('.\\src\\locale\\ja_JP\\messages.json', 'src\\locale\\ja_JP'), ('.\\src\\locale\\zh_CN\\messages.json', 'src\\locale\\zh_CN')],
hiddenimports=['pkg_resources', 'wx._adv', 'wx._html', 'bezier', 'quaternion', 'PIL', 'module.MParams', 'utils.MBezierUtils', 'numpy.core.multiarray'],
hookspath=[],
runtime_hooks=[],
excludes=exclude_keys,
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=None,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=None)
print('scripts -----')
a.scripts = remove_from_list(a.scripts)
# print([(f" - {s}\n") for s in a.scripts])
print('binaries -----')
a.binaries = remove_from_list(a.binaries)
# print([(f" - {s}\n") for s in a.binaries])
print('zipfiles -----')
a.zipfiles = remove_from_list(a.zipfiles)
# print([(f" - {s}\n") for s in a.zipfiles])
print('datas -----')
a.datas = remove_from_list(a.datas)
# print([(f" - {s}\n") for s in a.datas])
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='Vroid2Pmx_2.01.06',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
runtime_tmpdir=None,
console=False,
icon='.\\src\\vroid2pmx.ico')