Repository navigation
Expand file tree
/
Copy pathOctopusBridge.spec
More file actions
84 lines (80 loc) · 3.18 KB
/
Copy pathOctopusBridge.spec
File metadata and controls
84 lines (80 loc) · 3.18 KB
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
# -*- mode: python ; coding: utf-8 -*-
# Сгенерировано build_app.py — не редактируйте вручную.
from PyInstaller.utils.hooks import collect_all, collect_data_files, collect_dynamic_libs
from PyInstaller.utils.win32.versioninfo import (
FixedFileInfo, StringFileInfo, StringStruct, StringTable,
VarFileInfo, VarStruct, VSVersionInfo)
datas = collect_data_files('app') + collect_data_files('UnityPy') + [('assets/ico.ico', 'assets'), ('CHANGELOG.md', '.')]
# collect_data_files('UnityPy'): забирает UnityPy/resources/lzma.tpk (база
# typetree через importlib.resources). Без неё parse_as_dict падает на
# КАЖДОМ объекте с ModuleNotFoundError: UnityPy.resources — в exe было
# 26/26 файлов, 13988 текстовых объектов и 0 записей.
# collect_dynamic_libs('TypeTreeGeneratorAPI'): capstone.dll +
# TypeTreeGeneratorAPI.dll грузятся через ctypes в рантайме — анализ
# импортов их не видит. Без них _setup_typetree молча False и exe
# извлекает только TextAsset (101 вместо 6400).
binaries = collect_dynamic_libs('TypeTreeGeneratorAPI')
binaries, hiddenimports = binaries, ["UnityPy", "UnityPy.resources",
"TypeTreeGeneratorAPI"]
version_info = VSVersionInfo(
ffi=FixedFileInfo(
filevers=(7, 36, 0, 0),
prodvers=(7, 36, 0, 0),
mask=0x3F,
flags=0x0,
OS=0x40004,
fileType=0x1,
subtype=0x0,
date=(0, 0),
),
kids=[
StringFileInfo([
StringTable('040904B0', [
StringStruct('CompanyName', 'OctopusBridge'),
StringStruct('FileDescription', 'OctopusBridge - game translation & modding tool'),
StringStruct('FileVersion', '7.36'),
StringStruct('InternalName', 'OctopusBridge'),
StringStruct('OriginalFilename', 'OctopusBridge_v7.36.exe'),
StringStruct('ProductName', 'OctopusBridge'),
StringStruct('ProductVersion', '7.36'),
]),
]),
VarFileInfo([VarStruct('Translation', [1033, 1200])]),
],
)
a = Analysis(
['main.py'],
pathex=[],
binaries=binaries,
datas=datas,
hiddenimports=hiddenimports,
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=['PyQt5', 'PyQt6', 'PySide2', 'torch', 'torchvision', 'torchaudio', 'torch_directml', 'transformers', 'tokenizers', 'safetensors', 'accelerate', 'datasets', 'peft', 'einops', 'triton', 'sympy', 'networkx', 'sklearn', 'scipy', 'pandas', 'matplotlib', 'IPython', 'jupyter_client', 'stanza'],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='OctopusBridge_v7.36.exe',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=False,
upx_exclude=[],
runtime_tmpdir=None,
console=False,
disable_windowed_traceback=True,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon=['assets/ico.ico'],
version=version_info,
)