Skip to content

Commit

Permalink
REWRITE by pyqt6
Browse files Browse the repository at this point in the history
  • Loading branch information
karminski committed Dec 8, 2024
1 parent 6523ba0 commit 1b77a39
Show file tree
Hide file tree
Showing 7 changed files with 623 additions and 563 deletions.
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
.PHONY: install-requirements build-seprate build-bundle
.PHONY: install-requirements build-bundle

all: install-requirements build-bundle

install-requirements:
pip install -r requirements.txt

build-seprate:
python -m PyInstaller --windowed --uac-admin --add-binary "IPMICFG-Win.exe;." --onefile supermicro-x-series.py

build-bundle:
python -m PyInstaller fan-lord.spec
15 changes: 0 additions & 15 deletions admin_manifest.xml

This file was deleted.

18 changes: 9 additions & 9 deletions fan-lord.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
block_cipher = None

a = Analysis(
['supermicro-x-series.py'],
['main.py'],
pathex=[],
binaries=[
('IPMICFG-Win.exe', '.'),
('pmdll.dll', '.')
],
binaries=[],
datas=[
('fan-lord.ico', '.')
('IPMICFG-Win.exe', '.'), # 包含 IPMI 工具
('pmdll.dll', '.'), # 包含依赖 DLL
('fan-lord.ico', '.') # 包含图标文件(如果有的话)
],
hiddenimports=[],
hookspath=[],
Expand All @@ -32,17 +31,18 @@ exe = EXE(
a.zipfiles,
a.datas,
[],
name='FanLord',
name='Fan-Lord',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False,
console=False, # 设置为 False 以隐藏控制台窗口
disable_windowed_traceback=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='fan-lord.ico'
icon='fan-lord.ico', # 设置程序图标
version='file_version_info.txt', # 版本信息文件
)
27 changes: 27 additions & 0 deletions file_version_info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
VSVersionInfo(
ffi=FixedFileInfo(
filevers=(0, 1, 2, 0),
prodvers=(0, 1, 2, 0),
mask=0x3f,
flags=0x0,
OS=0x40004,
fileType=0x1,
subtype=0x0,
date=(0, 0)
),
kids=[
StringFileInfo(
[
StringTable(
u'040904B0',
[StringStruct(u'CompanyName', u'KCORES'),
StringStruct(u'FileDescription', u'Fan Lord for Supermicro X-Series'),
StringStruct(u'FileVersion', u'0.1.3'),
StringStruct(u'InternalName', u'Fan-Lord'),
StringStruct(u'LegalCopyright', u'Copyright (c) 2024 KCORES'),
StringStruct(u'OriginalFilename', u'Fan-Lord.exe'),
StringStruct(u'ProductName', u'Fan Lord'),
StringStruct(u'ProductVersion', u'0.1.3')])
])
]
)
Loading

0 comments on commit 1b77a39

Please sign in to comment.