build: allow reusing pyinstaller cache
This commit is contained in:
1 parent
164f76658c
commit
8e8a14cf69
2 files changed
+10
-1
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user