@@ -500,7 +500,9 @@ public function buildPhar72()
500500 $ this ->stopOnFail ();
501501
502502 $ this ->taskFilesystemStack ()->mkdir ('build/72 ' )->run ();
503+ $ this ->setCodeceptionVersionTo ('^4.1 ' );
503504 $ this ->setPlatformVersionTo ('7.2.0 ' );
505+ $ this ->requireHoaConsole ();
504506 $ buildFile = 'build/72/codecept.phar ' ;
505507 $ this ->buildPhar ($ buildFile );
506508 $ this ->updateVersionFile ($ buildFile , 'codecept.version ' );
@@ -521,7 +523,9 @@ public function buildPhar56()
521523 $ this ->stopOnFail ();
522524
523525 $ this ->taskFilesystemStack ()->mkdir ('build/56 ' )->run ();
526+ $ this ->setCodeceptionVersionTo ('^4.1 ' );
524527 $ this ->setPlatformVersionTo ('5.6.4 ' );
528+ $ this ->requireHoaConsole ();
525529 //filenames must be different, because Phar refuses to build second file with the same name
526530 $ buildFile = 'build/56/codecept.phar ' ;
527531 $ this ->buildPhar ($ buildFile );
@@ -534,12 +538,14 @@ public function buildPhar56()
534538 ->remove ('php56/codecept.phar ' )
535539 ->symlink ("../ $ versionedFile " , 'php56/codecept.phar ' )
536540 ->run ();
537-
538541 }
539542
540- public function findReleases ()
543+ private function requireHoaConsole (): void
541544 {
542-
545+ $ this ->taskComposerRequire ()
546+ ->dependency ('hoa/console ' )
547+ ->workingDir ('package ' )
548+ ->run ();
543549 }
544550
545551 public function release ()
0 commit comments