From 084a0fe6cdd41bf3c8f8c36e7ec2d02cbaee47da Mon Sep 17 00:00:00 2001 From: OpenCode Bot Date: Sun, 24 May 2026 23:01:22 +0800 Subject: [PATCH] feat: add pyinstaller build config and README --- temp_file_trans_client/README.md | 11 ++++++++ temp_file_trans_client/build.spec | 42 +++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 temp_file_trans_client/README.md create mode 100644 temp_file_trans_client/build.spec diff --git a/temp_file_trans_client/README.md b/temp_file_trans_client/README.md new file mode 100644 index 0000000..2aa7e72 --- /dev/null +++ b/temp_file_trans_client/README.md @@ -0,0 +1,11 @@ +# Temp File Transfer Client + +## 安装依赖 +pip install -r requirements.txt + +## 运行 +python main.py + +## 打包 +pip install pyinstaller +pyinstaller build.spec \ No newline at end of file diff --git a/temp_file_trans_client/build.spec b/temp_file_trans_client/build.spec new file mode 100644 index 0000000..9f654b6 --- /dev/null +++ b/temp_file_trans_client/build.spec @@ -0,0 +1,42 @@ +# -*- mode: python ; coding: utf-8 -*- + +block_cipher = None + +a = Analysis( + ['main.py'], + pathex=[], + binaries=[], + datas=[('config.json', '.')], + hiddenimports=['PySide6', 'requests'], + hookspath=[], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + win_no_prefer_redirects=False, + win_private_assemblies=False, + cipher=block_cipher, + noarchive=False, +) + +pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) + +exe = EXE( + pyz, + a.scripts, + a.binaries, + a.zipfiles, + a.datas, + [], + name='temp_file_trans_client', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + console=False, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, + icon=None, +) \ No newline at end of file