Squashed commit message
Some checks failed
Telegram Mini App Shop Builder / Compute version metadata (push) Has been cancelled
Telegram Mini App Shop Builder / Run Frontend tests (push) Has been cancelled
Telegram Mini App Shop Builder / Run Backend tests (push) Has been cancelled
Telegram Mini App Shop Builder / Run PHP_CodeSniffer (push) Has been cancelled
Telegram Mini App Shop Builder / Build module. (push) Has been cancelled
Telegram Mini App Shop Builder / release (push) Has been cancelled
Some checks failed
Telegram Mini App Shop Builder / Compute version metadata (push) Has been cancelled
Telegram Mini App Shop Builder / Run Frontend tests (push) Has been cancelled
Telegram Mini App Shop Builder / Run Backend tests (push) Has been cancelled
Telegram Mini App Shop Builder / Run PHP_CodeSniffer (push) Has been cancelled
Telegram Mini App Shop Builder / Build module. (push) Has been cancelled
Telegram Mini App Shop Builder / release (push) Has been cancelled
This commit is contained in:
17
scripts/ci/extract-phar.php
Normal file
17
scripts/ci/extract-phar.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
$pharFile = $argv[1] ?? null;
|
||||
$dstPath = $argv[2] ?? null;
|
||||
|
||||
if (! $dstPath) {
|
||||
throw new InvalidArgumentException('Dst path must be provided');
|
||||
}
|
||||
|
||||
if (! $pharFile) {
|
||||
throw new InvalidArgumentException('Phar file must be provided');
|
||||
}
|
||||
|
||||
$phar = new Phar($pharFile);
|
||||
$phar->extractTo($dstPath);
|
||||
|
||||
echo "Phar extracted: $pharFile\n";
|
||||
Reference in New Issue
Block a user