From 2830c2d2e81bcdb32aae04e02e05e759c1fe7880 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 25 Dec 2019 19:13:48 +0100 Subject: [PATCH] Update build scripts --- tools/layerdiff.php | 2 +- tools/makephar.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/layerdiff.php b/tools/layerdiff.php index 3fbfbdbe..9ff2b8bd 100644 --- a/tools/layerdiff.php +++ b/tools/layerdiff.php @@ -33,7 +33,7 @@ if ($argc !== 3) { */ 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) { use TL; diff --git a/tools/makephar.php b/tools/makephar.php index 39f0ae01..03485537 100755 --- a/tools/makephar.php +++ b/tools/makephar.php @@ -18,7 +18,7 @@ if (!isset($argv[3])) { @\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->addFromString('vendor/danog/madelineproto/.git/refs/heads/master', $argv[3]); $p->addFromString('.git/refs/heads/master', $argv[3]);