feat: add pyinstaller build config and README

This commit is contained in:
OpenCode Bot
2026-05-24 23:01:22 +08:00
parent ea896cc88f
commit 084a0fe6cd
2 changed files with 53 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
# Temp File Transfer Client
## 安装依赖
pip install -r requirements.txt
## 运行
python main.py
## 打包
pip install pyinstaller
pyinstaller build.spec

View File

@@ -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,
)