From 80b9268e4f72fef35e2a87ff45dd64fc727933a4 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Sun, 8 Mar 2015 12:26:10 +0100 Subject: [PATCH] fix compressed phars --- src/pharext/Packager.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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()); -- 2.30.2