mirror of
https://github.com/gabrielrcouto/php-terminal-gameboy-emulator.git
synced 2025-01-16 17:09:22 +01:00
bin/build improvement packing only necessary files
This commit is contained in:
parent
e73dc3d5c5
commit
a189df7fd5
22
.gitignore
vendored
22
.gitignore
vendored
@ -1,9 +1,21 @@
|
||||
material/
|
||||
vendor/
|
||||
# root
|
||||
cache.properties
|
||||
bin/phpcs
|
||||
bin/phpcbf
|
||||
|
||||
# bin
|
||||
bin/*
|
||||
!bin/php-gameboy
|
||||
!bin/php-gameboy.phar
|
||||
|
||||
# material
|
||||
material/
|
||||
|
||||
# vendor
|
||||
vendor/
|
||||
|
||||
# roms
|
||||
roms/
|
||||
|
||||
# global
|
||||
*.gb
|
||||
*.gbc
|
||||
*.rom
|
||||
*.rom
|
||||
|
22
bin/build
22
bin/build
@ -2,6 +2,7 @@
|
||||
<?php
|
||||
|
||||
use Symfony\Component\Finder\Finder;
|
||||
use Symfony\Component\Finder\SplFileInfo;
|
||||
|
||||
require_once(__DIR__ . '/../vendor/autoload.php');
|
||||
|
||||
@ -46,22 +47,19 @@ $phar = new Phar(
|
||||
$phar->setSignatureAlgorithm(\Phar::SHA1);
|
||||
$phar->startBuffering();
|
||||
|
||||
addFile($phar, new SplFileInfo('boot.php', $rootDir . '/boot.php', 'boot.php'));
|
||||
addFile($phar, new SplFileInfo('composer.json', $rootDir . '/composer.json', 'composer.json'));
|
||||
addFile($phar, new SplFileInfo('vendor/autoload.php', $rootDir . '/vendor/autoload.php', 'vendor/autoload.php'));
|
||||
|
||||
$finder = new Finder();
|
||||
$finder->files()
|
||||
->ignoreVCS(true)
|
||||
->name('*.php')
|
||||
->exclude('bin')
|
||||
->exclude('.gitignore')
|
||||
->exclude('.travis.yml')
|
||||
->exclude('README.md')
|
||||
->exclude('build.xml')
|
||||
->exclude('cache.properties')
|
||||
->exclude('composer.json')
|
||||
->exclude('composer.lock')
|
||||
->exclude('docker-php-7')
|
||||
->exclude('phpcs.xml')
|
||||
->exclude('.git')
|
||||
->in($rootDir)
|
||||
->in([
|
||||
$rootDir . '/src/',
|
||||
$rootDir . '/vendor/composer',
|
||||
$rootDir . '/vendor/whatthejeff',
|
||||
])
|
||||
->sort($finderSort)
|
||||
;
|
||||
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user