From fd85056fb5df1488f30836b2d67c820cbff0b06e Mon Sep 17 00:00:00 2001 From: mikumifa <1055069518@qq.com> Date: Sat, 20 Apr 2024 02:27:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20gradio=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bilibili-buy.spec | 52 +++++++++++++++++++++++++++++++++++++++++++++++ readme.md | 2 ++ 2 files changed, 54 insertions(+) create mode 100644 bilibili-buy.spec diff --git a/bilibili-buy.spec b/bilibili-buy.spec new file mode 100644 index 0000000..9afea1f --- /dev/null +++ b/bilibili-buy.spec @@ -0,0 +1,52 @@ +# -*- mode: python ; coding: utf-8 -*- +from PyInstaller.utils.hooks import collect_data_files + +datas = [] +datas += collect_data_files('gradio_client') +datas += collect_data_files('gradio') + + +a = Analysis( + ['main.py'], + pathex=[], + binaries=[], + datas=datas, + module_collection_mode={ + 'gradio': 'py', # Collect gradio package as source .py files + }, + hiddenimports=[], + hookspath=[], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + noarchive=False, +) +pyz = PYZ(a.pure) + +exe = EXE( + pyz, + a.scripts, + [], + exclude_binaries=True, + name='bilibili-buy', + 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=['icon.ico'] +) +coll = COLLECT( + exe, + a.binaries, + a.datas, + strip=False, + upx=True, + upx_exclude=[], + name='main', +) diff --git a/readme.md b/readme.md index 81d6596..b9221b8 100644 --- a/readme.md +++ b/readme.md @@ -46,6 +46,8 @@ ## 使用说明书 +重构了UI + [点我前往使用说明书](https://mikumifa.github.io/2023/11/10/B%E7%AB%99%E4%BC%9A%E5%91%98%E8%B4%AD%E6%BC%AB%E5%B1%95%E6%8A%A2%E7%A5%A8%E4%BD%BF%E7%94%A8/) > **补充**