Fix windows UPX_EXEC env var missing (#423)

This commit is contained in:
Jerry Ma 2024-04-25 16:48:31 +08:00 committed by GitHub
parent 1a87ce4194
commit b14894fab7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -63,6 +63,7 @@ class GlobalEnvManager
{
// Windows need php-sdk binary tools
self::initIfNotExists('PHP_SDK_PATH', WORKING_DIR . DIRECTORY_SEPARATOR . 'php-sdk-binary-tools');
self::initIfNotExists('UPX_EXEC', PKG_ROOT_PATH . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'upx.exe');
}
private static function initLinuxEnv(BuilderBase $builder): void