From a7d64077904381c2565a49db7a2a66f8785c0766 Mon Sep 17 00:00:00 2001 From: xunbu Date: Mon, 26 May 2025 22:49:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0spec=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/workspace.xml | 129 +++++++++++++++++++++----------------------- full.spec | 2 +- full_dir.spec | 53 ------------------ lite.spec | 2 +- lite_dir.spec | 38 ------------- 5 files changed, 64 insertions(+), 160 deletions(-) delete mode 100644 full_dir.spec delete mode 100644 lite_dir.spec diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 4db386e..18cb508 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,16 +5,11 @@ - - - - - - - - - + + + + - { - "keyToString": { - "DefaultHtmlFileTemplate": "HTML File", - "JavaScript 调试.output.html (1).executor": "Run", - "JavaScript 调试.output.html.executor": "Run", - "JavaScript 调试.regex.md_中文.html.executor": "Run", - "JavaScript 调试.regex_中文.html.executor": "Run", - "JavaScript 调试.test.html.executor": "Run", - "JavaScript 调试.test2.html.executor": "Run", - "JavaScript 调试.test2_英文.html.executor": "Run", - "JavaScript 调试.test4-1_中文.html.executor": "Run", - "JavaScript 调试.互联网认证授权机制.html.executor": "Run", - "JavaScript 调试.互联网认证授权机制_英文.html.executor": "Run", - "JavaScript 调试.毕业论文_英文.html.executor": "Run", - "ModuleVcsDetector.initialDetectionPerformed": "true", - "Python 测试.Python 测试 (markdown_mask.py 内).executor": "Run", - "Python 测试.markdown_mask.Test.test_basic_link_masking 的 Python 测试.executor": "Run", - "Python 测试.pytest (test_html.py 内).executor": "Run", - "Python.1test.executor": "Run", - "Python.2test2 (1).executor": "Run", - "Python.3testhtml.executor": "Run", - "Python.PDFtranslater (1).executor": "Run", - "Python.PDFtranslater (2).executor": "Run", - "Python.agent.executor": "Debug", - "Python.agent_utils.executor": "Run", - "Python.app (1).executor": "Run", - "Python.app.executor": "Run", - "Python.app2.executor": "Run", - "Python.app_test (1).executor": "Run", - "Python.convert.executor": "Run", - "Python.converter_docling.executor": "Run", - "Python.converter_mineru.executor": "Run", - "Python.markdown_splitter.executor": "Debug", - "Python.markdown_utils.executor": "Run", - "Python.test.executor": "Run", - "Python.test1.executor": "Run", - "Python.test2.executor": "Run", - "Python.test3.executor": "Run", - "Python.test4.executor": "Run", - "Python.testhtml.executor": "Run", - "Python.translater.executor": "Run", - "Python.切分测试.executor": "Run", - "RunOnceActivity.ShowReadmeOnStart": "true", - "RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager": "true", - "RunOnceActivity.git.unshallow": "true", - "git-widget-placeholder": "dev", - "last_opened_file_path": "C:/Users/jxgm/Desktop/translate/docutranslate", - "list.type.of.created.stylesheet": "CSS", - "node.js.detected.package.eslint": "true", - "node.js.detected.package.tslint": "true", - "node.js.selected.package.eslint": "(autodetect)", - "node.js.selected.package.tslint": "(autodetect)", - "nodejs_package_manager_path": "npm", - "settings.editor.selected.configurable": "preferences.pluginManager", - "vue.rearranger.settings.migration": "true" + +}]]> @@ -111,11 +106,11 @@ + + - - diff --git a/full.spec b/full.spec index 094f474..0438e37 100644 --- a/full.spec +++ b/full.spec @@ -1,7 +1,7 @@ # -*- mode: python ; coding: utf-8 -*- from PyInstaller.utils.hooks import collect_all datas = [('./.venv/Lib/site-packages/docling_parse/pdf_resources_v2', 'docling_parse/pdf_resources_v2'), -('./docutranslate/static', 'docutranslate/static')] +('./docutranslate/static', 'docutranslate/static'),('./docutranslate/template', 'docutranslate/template')] binaries = [] hiddenimports=[] for i in ['easyocr','docling']: diff --git a/full_dir.spec b/full_dir.spec deleted file mode 100644 index a7ad367..0000000 --- a/full_dir.spec +++ /dev/null @@ -1,53 +0,0 @@ -# -*- mode: python ; coding: utf-8 -*- -from PyInstaller.utils.hooks import collect_all - -datas = [('./.venv/Lib/site-packages/docling_parse/pdf_resources_v2', 'docling_parse/pdf_resources_v2'), -('./docutranslate/static', 'docutranslate/static')] -binaries = [] -hiddenimports=[] -for i in ['easyocr','docling']: - tmp_ret = collect_all(i) - datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2] - -a = Analysis( - ['./docutranslate/app.py'], - pathex=[], - binaries=binaries, - datas=datas, - hiddenimports=hiddenimports, - hookspath=[], - hooksconfig={}, - runtime_hooks=[], - excludes=[], - noarchive=False, - optimize=0, -) -pyz = PYZ(a.pure) - -exe = EXE( - pyz, - a.scripts, - [], - exclude_binaries=True, - name='DocuTranslate_full', - 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=['DocuTranslate.ico'], -) -coll = COLLECT( - exe, - a.binaries, - a.datas, - strip=False, - upx=True, - upx_exclude=[], - name='DocuTranslate_full', -) diff --git a/lite.spec b/lite.spec index 9657ce6..0aadc83 100644 --- a/lite.spec +++ b/lite.spec @@ -4,7 +4,7 @@ a = Analysis( ['docutranslate\\app.py'], pathex=[], binaries=[], - datas=[('./docutranslate/static', 'docutranslate/static')], + datas=[('./docutranslate/static', 'docutranslate/static'),('./docutranslate/template', 'docutranslate/template')], hiddenimports=[], hookspath=[], hooksconfig={}, diff --git a/lite_dir.spec b/lite_dir.spec deleted file mode 100644 index 9657ce6..0000000 --- a/lite_dir.spec +++ /dev/null @@ -1,38 +0,0 @@ -# -*- mode: python ; coding: utf-8 -*- - -a = Analysis( - ['docutranslate\\app.py'], - pathex=[], - binaries=[], - datas=[('./docutranslate/static', 'docutranslate/static')], - hiddenimports=[], - hookspath=[], - hooksconfig={}, - runtime_hooks=[], - excludes=["docling","docutranslate.converter.converter_docling"], - noarchive=False, - optimize=0, -) -pyz = PYZ(a.pure) - -exe = EXE( - pyz, - a.scripts, - a.binaries, - a.datas, - [], - name='DocuTranslate', - debug=False, - bootloader_ignore_signals=False, - strip=False, - upx=True, - upx_exclude=[], - runtime_tmpdir=None, - console=True, - disable_windowed_traceback=False, - argv_emulation=False, - target_arch=None, - codesign_identity=None, - entitlements_file=None, - icon=['DocuTranslate.ico'], -)