Browse Source

Add ca-bundle to build

Jordi Boggiano 9 years ago
parent
commit
1a5441f944
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/Composer/Compiler.php

+ 4 - 1
src/Composer/Compiler.php

@@ -14,6 +14,7 @@ namespace Composer;
 
 use Composer\Json\JsonFile;
 use Composer\Spdx\SpdxLicenses;
+use Composer\CaBundle\CaBundle;
 use Symfony\Component\Finder\Finder;
 use Symfony\Component\Process\Process;
 use Seld\PharUtils\Timestamps;
@@ -120,6 +121,8 @@ class Compiler
             ->in(__DIR__.'/../../vendor/justinrainbow/json-schema/')
             ->in(__DIR__.'/../../vendor/composer/spdx-licenses/')
             ->in(__DIR__.'/../../vendor/composer/semver/')
+            ->in(__DIR__.'/../../vendor/composer/ca-bundle/')
+            ->in(__DIR__.'/../../vendor/psr/')
             ->sort($finderSort)
         ;
 
@@ -138,7 +141,7 @@ class Compiler
         }
         $this->addFile($phar, new \SplFileInfo(__DIR__.'/../../vendor/composer/ClassLoader.php'));
 
-        $this->addFile($phar, new \SplFileInfo(__DIR__ . '/../../res/cacert.pem'), false);
+        $this->addFile($phar, new \SplFileInfo(CaBundle::getBundledCaBundlePath()), false);
 
         $this->addComposerBin($phar);