From: Michael Wallner Date: Sun, 8 Mar 2015 11:26:10 +0000 (+0100) Subject: fix compressed phars X-Git-Tag: v2.0.0~14 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=80b9268e4f72fef35e2a87ff45dd64fc727933a4;p=pharext%2Fpharext fix compressed phars --- diff --git a/src/pharext/Packager.php b/src/pharext/Packager.php index f27c38a..a342e2f 100644 --- a/src/pharext/Packager.php +++ b/src/pharext/Packager.php @@ -143,7 +143,8 @@ class Packager implements Command if ($this->args->gzip) { $this->info("Compressing with gzip ... "); try { - $package->compress(Phar::GZ); + $package->compress(Phar::GZ) + ->setDefaultStub("pharext_installer.php"); $this->info("OK\n"); } catch (\Exception $e) { $this->error("%s\n", $e->getMessage()); @@ -152,7 +153,8 @@ class Packager implements Command if ($this->args->bzip) { $this->info("Compressing with bzip ... "); try { - $package->compress(Phar::BZ2); + $package->compress(Phar::BZ2) + ->setDefaultStub("pharext_installer.php"); $this->info("OK\n"); } catch (\Exception $e) { $this->error("%s\n", $e->getMessage());