feat: add pyinstaller build config and README
This commit is contained in:
11
temp_file_trans_client/README.md
Normal file
11
temp_file_trans_client/README.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# Temp File Transfer Client
|
||||
|
||||
## 安装依赖
|
||||
pip install -r requirements.txt
|
||||
|
||||
## 运行
|
||||
python main.py
|
||||
|
||||
## 打包
|
||||
pip install pyinstaller
|
||||
pyinstaller build.spec
|
||||
42
temp_file_trans_client/build.spec
Normal file
42
temp_file_trans_client/build.spec
Normal 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,
|
||||
)
|
||||
Reference in New Issue
Block a user