-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.ps1
More file actions
21 lines (18 loc) · 749 Bytes
/
Copy pathbuild.ps1
File metadata and controls
21 lines (18 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 本地一键构建 SysMonitor.exe (Nuitka)
# 用法: .\build.ps1 产物: .\SysMonitor.exe
$ErrorActionPreference = "Stop"
Set-Location $PSScriptRoot
# 下载/更新第三方二进制依赖 (LHM DLLs, PawnIO_setup.exe)
.\scripts\get-deps.ps1
uv sync --group dev
uv run python -m nuitka --standalone --onefile `
--windows-console-mode=disable --windows-uac-admin `
--plugin-enable=pyqt6 --include-raw-dir=libs=libs --clean-cache=all `
--windows-icon-from-ico=libs/logo.ico `
-o SysMonitor.exe main.py
if (Test-Path "SysMonitor.exe") {
$size = (Get-Item "SysMonitor.exe").Length / 1MB
Write-Host ("build ok: SysMonitor.exe ({0:N1} MB)" -f $size)
} else {
Write-Error "build failed: SysMonitor.exe not found"
}