mirror of
https://github.com/guzzle/guzzle.git
synced 2025-02-12 03:24:26 +01:00
Updating packager
This commit is contained in:
parent
2c2f1d7c47
commit
b17b0f94db
@ -1,9 +1,7 @@
|
||||
<?php
|
||||
require __DIR__ . '/artifacts/Burgomaster.php';
|
||||
|
||||
// Creating staging directory at guzzlehttp/src/build/artifacts/staging.
|
||||
$stageDirectory = __DIR__ . '/artifacts/staging';
|
||||
// The root of the project is up one directory from the current directory.
|
||||
$projectRoot = __DIR__ . '/../';
|
||||
$packager = new \Burgomaster($stageDirectory, $projectRoot);
|
||||
|
||||
@ -14,12 +12,10 @@ foreach (['README.md', 'LICENSE'] as $file) {
|
||||
}
|
||||
|
||||
// Copy each dependency to the staging directory. Copy *.php and *.pem files.
|
||||
$packager->recursiveCopy('src', 'GuzzleHttp', ['php', 'pem']);
|
||||
$packager->recursiveCopy('src', 'GuzzleHttp', ['php']);
|
||||
$packager->recursiveCopy('vendor/react/promise/src', '');
|
||||
$packager->recursiveCopy('vendor/guzzlehttp/ringphp/src', 'GuzzleHttp/Ring');
|
||||
$packager->recursiveCopy('vendor/guzzlehttp/streams/src', 'GuzzleHttp/Stream');
|
||||
// Create the classmap autoloader, and instruct the autoloader to
|
||||
// automatically require the 'GuzzleHttp/functions.php' script.
|
||||
$packager->createAutoloader(['GuzzleHttp/functions.php']);
|
||||
// Create a phar file from the staging directory at a specific location
|
||||
$packager->createAutoloader(['React/Promise/functions.php']);
|
||||
$packager->createPhar(__DIR__ . '/artifacts/guzzle.phar');
|
||||
// Create a zip file from the staging directory at a specific location
|
||||
$packager->createZip(__DIR__ . '/artifacts/guzzle.zip');
|
||||
|
Loading…
x
Reference in New Issue
Block a user