Fix phar build

This commit is contained in:
Daniil Gentili 2019-05-31 00:27:47 +02:00
parent 2039667f82
commit 65c0639229

View File

@ -19,7 +19,7 @@ if (!isset($argv[3])) {
@unlink($argv[2]);
$p = new Phar(__DIR__.'/'.$argv[2], 0, $argv[2]);
$p->buildFromDirectory(realpath($argv[1]), '/^((?!tests).)*(\.php|\.py|\.tl|\.json)$/i');
$p->buildFromDirectory(realpath($argv[1]), '/^((?!tests).)*(\.php|\.py|\.tl|\.json|\.dat)$/i');
$p->addFromString('vendor/danog/madelineproto/.git/refs/heads/master', $argv[3]);
$p->addFromString('.git/refs/heads/master', $argv[3]);