mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 01:15:37 +08:00
Fix upx packing for win
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -145,7 +145,7 @@ class PackageBuilder
|
|||||||
shell()->exec(getenv('UPX_EXEC') . " --best {$dst}");
|
shell()->exec(getenv('UPX_EXEC') . " --best {$dst}");
|
||||||
} elseif ($upx_option && SystemTarget::getTargetOS() === 'Windows' && $executable) {
|
} elseif ($upx_option && SystemTarget::getTargetOS() === 'Windows' && $executable) {
|
||||||
logger()->info("Compressing {$dst} with UPX");
|
logger()->info("Compressing {$dst} with UPX");
|
||||||
shell()->exec(getenv('UPX_EXEC') . ' --best ' . escapeshellarg($dst));
|
cmd()->exec(getenv('UPX_EXEC') . ' --best ' . escapeshellarg($dst));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $dst;
|
return $dst;
|
||||||
|
|||||||
Reference in New Issue
Block a user