Update build scripts

This commit is contained in:
Daniil Gentili 2019-12-25 19:13:48 +01:00
parent b269a1f691
commit 2830c2d2e8
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ if ($argc !== 3) {
*/ */
function getTL($layer) function getTL($layer)
{ {
$layer = __DIR__."/src/danog/MadelineProto/TL_telegram_v$layer.tl"; $layer = __DIR__."/../src/danog/MadelineProto/TL_telegram_v$layer.tl";
$layer = new class($layer) { $layer = new class($layer) {
use TL; use TL;

View File

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