Fix upx packing for win

This commit is contained in:
crazywhalecc
2026-04-03 16:26:20 +08:00
parent 852a0437bd
commit 51b8a0cab5
2 changed files with 777 additions and 784 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -145,7 +145,7 @@ class PackageBuilder
shell()->exec(getenv('UPX_EXEC') . " --best {$dst}");
} elseif ($upx_option && SystemTarget::getTargetOS() === 'Windows' && $executable) {
logger()->info("Compressing {$dst} with UPX");
shell()->exec(getenv('UPX_EXEC') . ' --best ' . escapeshellarg($dst));
cmd()->exec(getenv('UPX_EXEC') . ' --best ' . escapeshellarg($dst));
}
return $dst;