Skip to content

Commit

Permalink
[BUGFIX] Add missing files for Symfony Console
Browse files Browse the repository at this point in the history
Also set PHP version the phar file is being build, to PHP 7.3
  • Loading branch information
a-r-m-i-n committed May 27, 2023
1 parent 1d4b72b commit 9cfeab0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tagged-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup PHP
uses: "shivammathur/setup-php@v2"
with:
php-version: "7.4"
php-version: "7.3"
ini-values: "phar.readonly=0"

- name: Validate composer.json and composer.lock
Expand Down
11 changes: 11 additions & 0 deletions src/Compiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,17 @@ public static function compile(): void
self::addFile($phar, $file);
}

// Add required assets to PHAR
$finder = new Finder();
$finder->files()
->ignoreVCS(true)
->name('*')
->in(__DIR__ . '/../vendor/symfony/console/Resources')
->sort($finderSort);
foreach ($finder as $file) {
self::addFile($phar, $file);
}

// More files to add
self::addComposerAutoloader($phar);
self::addBinary($phar);
Expand Down

0 comments on commit 9cfeab0

Please sign in to comment.