Spaces:
No application file
No application file
File size: 1,206 Bytes
d2897cd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
<?php
$baseDir = __DIR__;
/*
* Build a "production" package from the current development HEAD, this should be run after a 'composer install --no-dev --no-scripts --optimize-autoloader'
* to emulate a proper release package
*/
// Preparation - Remove previous packages
echo "Preparing environment\n";
umask(022);
chdir($baseDir);
system('rm -rf packaging');
@unlink($baseDir.'/packages/mautic-head.zip');
// Preparation - Provision packaging space
mkdir(__DIR__.'/packaging');
// Copy working files to packaging space
echo "Copying files\n";
system("rsync -az --exclude-from 'excludefiles.txt' ../ packaging > /dev/null");
// Generate the bootstrap.php.cache file
system(__DIR__.'/packaging/vendor/sensio/distribution-bundle/Resources/bin/build_bootstrap.php', $result);
// Common steps
include_once __DIR__.'/processfiles.php';
// Step 5 - ZIP it up
echo "Packaging Mautic\n";
chdir(__DIR__.'/packaging');
system('zip -r ../packages/mautic-head.zip . > /dev/null');
// Copy over upgrade.php
system('cp '.__DIR__.'/../upgrade.php '.__DIR__.'/packaging');
chdir(__DIR__.'/packaging');
echo "Packaging Mautic Update Package\n";
system('zip -r ../packages/mautic-head-update.zip . > /dev/null');
|