support for running .ext.phars without ext/phar
[pharext/pharext] / src / pharext / Packager.php
index bdb83bb4515cdebc7f1e4b7bdb37c5a87d28081f..10542e489a74611366a2033e9e0600e8afad71fa 100644 (file)
@@ -247,10 +247,9 @@ class Packager implements Command
                                "name" => $this->args->name,
                                "release" => $this->args->release,
                                "license" => $this->source->getLicense(),
-                               "stub" => "pharext_installer.php",
                                "type" => $this->args->zend ? "zend_extension" : "extension",
                        ]);
-                       $file = (new Task\PharBuild($this->source, $meta))->run($this->verbosity());
+                       $file = (new Task\PharBuild($this->source, __DIR__."/../pharext_installer.php", $meta))->run($this->verbosity());
                } catch (\Exception $e) {
                        $this->error("%s\n", $e->getMessage());
                        exit(self::EBUILD);