sprintf("pharext v%s (c) Michael Wallner ", pharext\VERSION), "version" => pharext\VERSION, "name" => "pharext", "date" => date("Y-m-d"), "stub" => "pharext_packager.php", "license" => file_get_contents(__DIR__."/../LICENSE") ], false))->run(); if (getenv("SIGN")) { $pass = (new pharext\Task\Askpass)->run(); $sign = new pharext\Task\PharSign($file, __DIR__."/pharext.key", $pass); $pkey = $sign->run(); $pkey->exportPublicKey(__DIR__."/../bin/pharext.pubkey"); } /* we do not need the extra logic of Task\PharRename */ rename($file, __DIR__."/../bin/pharext");