4 * Creates bin/pharext, invoked through the Makefile
7 set_include_path(dirname(__DIR__
)."/src");
8 spl_autoload_register(function($c) {
9 return include strtr($c, "\\_", "//") . ".php";
12 $file = (new pharext\Task\
PharBuild(null, pharext\Metadata
::all() +
[
14 "stub" => "pharext_packager.php",
15 "license" => file_get_contents(__DIR__
."/../LICENSE")
19 $pass = (new pharext\Task\Askpass
)->run();
20 $sign = new pharext\Task\
PharSign($file, __DIR__
."/pharext.key", $pass);
22 $pkey->exportPublicKey(__DIR__
."/../bin/pharext.pubkey");
25 /* we do not need the extra logic of Task\PharRename */
26 rename($file, __DIR__
."/../bin/pharext");