新增 PyInstaller 配置文件
This commit is contained in:
parent
6ba41ad73e
commit
2d144db678
5
main.py
5
main.py
@ -412,7 +412,10 @@ filemenu.add_command(label="保存配置", command=save_config)
|
|||||||
filemenu.add_command(label="读取配置", command=load_config)
|
filemenu.add_command(label="读取配置", command=load_config)
|
||||||
menubar.add_cascade(label="文件", menu=filemenu)
|
menubar.add_cascade(label="文件", menu=filemenu)
|
||||||
aboutmenu = tk.Menu(menubar, tearoff=0)
|
aboutmenu = tk.Menu(menubar, tearoff=0)
|
||||||
aboutmenu.add_command(label="开源",
|
aboutmenu.add_command(label="使用教程",
|
||||||
|
command=lambda: webbrowser.open("https://gitea.miri.site/Mr_Fang/cgh_keyboard_fire_tool"
|
||||||
|
"/src/branch/master/README.md"))
|
||||||
|
aboutmenu.add_command(label="开源仓库",
|
||||||
command=lambda: webbrowser.open("https://gitea.miri.site/Mr_Fang/cgh_keyboard_fire_tool"))
|
command=lambda: webbrowser.open("https://gitea.miri.site/Mr_Fang/cgh_keyboard_fire_tool"))
|
||||||
menubar.add_cascade(label="帮助", menu=aboutmenu)
|
menubar.add_cascade(label="帮助", menu=aboutmenu)
|
||||||
root.config(menu=menubar)
|
root.config(menu=menubar)
|
||||||
|
39
main.spec
Normal file
39
main.spec
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
# -*- mode: python ; coding: utf-8 -*-
|
||||||
|
|
||||||
|
VERSION = "1.0.1"
|
||||||
|
|
||||||
|
a = Analysis(
|
||||||
|
['main.py'],
|
||||||
|
pathex=[],
|
||||||
|
binaries=[],
|
||||||
|
datas=[],
|
||||||
|
hiddenimports=[],
|
||||||
|
hookspath=[],
|
||||||
|
hooksconfig={},
|
||||||
|
runtime_hooks=[],
|
||||||
|
excludes=[],
|
||||||
|
noarchive=False,
|
||||||
|
optimize=0,
|
||||||
|
)
|
||||||
|
pyz = PYZ(a.pure)
|
||||||
|
|
||||||
|
exe = EXE(
|
||||||
|
pyz,
|
||||||
|
a.scripts,
|
||||||
|
a.binaries,
|
||||||
|
a.datas,
|
||||||
|
[],
|
||||||
|
name=f'Keyboard_Fire_Tool_V{VERSION}',
|
||||||
|
debug=False,
|
||||||
|
bootloader_ignore_signals=False,
|
||||||
|
strip=False,
|
||||||
|
upx=True,
|
||||||
|
upx_exclude=[],
|
||||||
|
runtime_tmpdir=None,
|
||||||
|
console=False,
|
||||||
|
disable_windowed_traceback=False,
|
||||||
|
argv_emulation=False,
|
||||||
|
target_arch=None,
|
||||||
|
codesign_identity=None,
|
||||||
|
entitlements_file=None,
|
||||||
|
)
|
Loading…
x
Reference in New Issue
Block a user