Skip to content

Commit

Permalink
[TASK] Fix phar build-script
Browse files Browse the repository at this point in the history
  • Loading branch information
liayn committed Dec 17, 2024
1 parent 141c719 commit 8b0b02c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
"scripts": {
"extension-create-libs": [
"mkdir -p Libraries/temp",
"[ -f $HOME/.composer/vendor/bin/phar-composer ] || composer global require clue/phar-composer",
"if [ ! -f Libraries/league-oauth2-client.phar ]; then cd Libraries/temp && composer require league/oauth2-client=^2.8 && composer require firebase/php-jwt=^6.10 composer config classmap-authoritative true && composer config prepend-autoloader false && composer dump-autoload; fi",
"[ -f Libraries/league-oauth2-client.phar ] || $HOME/.composer/vendor/bin/phar-composer build Libraries/temp/ Libraries/league-oauth2-client.phar",
"[ -f $COMPOSER_HOME/vendor/bin/phar-composer ] || composer global require clue/phar-composer",
"if [ ! -f Libraries/league-oauth2-client.phar ]; then cd Libraries/temp && composer require league/oauth2-client=^2.8 && composer require firebase/php-jwt=^6.10 && composer config classmap-authoritative true && composer config prepend-autoloader false && composer dump-autoload && cd ../../; fi",
"[ -f Libraries/league-oauth2-client.phar ] || php -d phar.readonly=off $COMPOSER_HOME/vendor/bin/phar-composer build Libraries/temp/ Libraries/league-oauth2-client.phar",
"chmod -x Libraries/*.phar",
"rm -rf Libraries/temp"
],
Expand Down

0 comments on commit 8b0b02c

Please sign in to comment.