- 言語マッピングを src-python/models/translation/languages/languages.yml として追加 - translation_languages.py を全面リファクタ:YAML から読み込み、構造検証、スレッドロック、キャッシュ対応を導入 - config.py に loadTranslationLanguages のインポート/フォールバックを追加し、Config 初期化時に言語定義を読み込むよう変更 - PyYAML を requirements.txt / requirements_cuda.txt に追記 - PyInstaller spec (backend.spec / backend_cuda.spec) に言語ファイル配布先を追加 - translation_ollama.py の loadPromptConfig 呼び出しを修正(ファイル名を明示)
54 lines
1.2 KiB
Python
54 lines
1.2 KiB
Python
# -*- mode: python ; coding: utf-8 -*-
|
|
|
|
|
|
a = Analysis(
|
|
['src-python\\mainloop.py'],
|
|
pathex=[],
|
|
binaries=[],
|
|
datas=[
|
|
('./src-python/models/overlay/fonts', 'fonts/'),
|
|
('./src-python/models/translation/prompt', 'prompt/'),
|
|
('./src-python/models/translation/languages', 'languages/'),
|
|
('.venv_cuda/Lib/site-packages/zeroconf', 'zeroconf/'),
|
|
('.venv_cuda/Lib/site-packages/openvr', 'openvr/'),
|
|
('.venv_cuda/Lib/site-packages/faster_whisper', 'faster_whisper/'),
|
|
('.venv/Lib/site-packages/hf_xet', 'hf_xet/')
|
|
],
|
|
hiddenimports=[],
|
|
hookspath=[],
|
|
hooksconfig={},
|
|
runtime_hooks=[],
|
|
excludes=['pandas', 'matplotlib', 'PyQt5'],
|
|
noarchive=False,
|
|
optimize=0,
|
|
)
|
|
pyz = PYZ(a.pure)
|
|
|
|
exe = EXE(
|
|
pyz,
|
|
a.scripts,
|
|
[],
|
|
exclude_binaries=True,
|
|
name='VRCT-sidecar-x86_64-pc-windows-msvc',
|
|
debug=False,
|
|
bootloader_ignore_signals=False,
|
|
strip=False,
|
|
upx=True,
|
|
console=True,
|
|
disable_windowed_traceback=False,
|
|
argv_emulation=False,
|
|
target_arch=None,
|
|
codesign_identity=None,
|
|
entitlements_file=None,
|
|
icon=[],
|
|
)
|
|
coll = COLLECT(
|
|
exe,
|
|
a.binaries,
|
|
a.datas,
|
|
strip=False,
|
|
upx=True,
|
|
upx_exclude=[],
|
|
name='.',
|
|
)
|