build: allow reusing pyinstaller cache

This commit is contained in:
Your Name committed 2026-06-24 03:47:38 +08:00
1 parent 164f76658c
commit 8e8a14cf69
2 files changed
+10 -1

No files matched your search

+4 -1
View File
@@ -7,6 +7,7 @@ param(
[switch]$PackExe,
[switch]$PackExeForce,
[switch]$IncludeLicense,
[switch]$ReuseCache,
[string]$UpxDir = ""
)
@@ -61,7 +62,6 @@ if ($UsePyArmor -and -not $NoObfuscateForDevOnly) {
}
$CommonArgs = @(
"--clean",
"--noconfirm",
"--distpath", $DistRoot,
"--workpath", (Join-Path $Root "build\pyinstaller"),
@@ -72,6 +72,9 @@ $CommonArgs = @(
"--hidden-import", "logging.handlers",
"--hidden-import", "cryptography.hazmat.primitives.serialization"
)
if (-not $ReuseCache) {
$CommonArgs = @("--clean") + $CommonArgs
}
$GuiArgs = @(
"--collect-submodules", "gui"