Skip to content

Commit

Permalink
Merge pull request #167 from hydephp/release/v0.7.65
Browse files Browse the repository at this point in the history
HydeCLI v0.7.65
  • Loading branch information
caendesilva authored Apr 24, 2024
2 parents e15acd7 + 02d8dc3 commit 43f97c8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class Application extends \Hyde\Foundation\Application
{
final public const APP_VERSION = '0.7.64';
final public const APP_VERSION = '0.7.65';

public function getCachedPackagesPath(): string
{
Expand Down
12 changes: 4 additions & 8 deletions app/Commands/SelfUpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class SelfUpdateCommand extends Command
use ReportsSelfUpdateCommandIssues;

/** @var string */
protected $signature = 'self-update {--check : Check for a new version without updating} {--force-composer-update : Internal temporary flag to force a Composer update}';
protected $signature = 'self-update {--check : Check for a new version without updating}';

/** @var string */
protected $description = 'Update the standalone application to the latest version.';
Expand Down Expand Up @@ -102,11 +102,6 @@ public function handle(): int

$strategy = $this->determineUpdateStrategy();

/** @deprecated */
if ($this->option('force-composer-update')) {
$strategy = self::STRATEGY_COMPOSER;
}

$this->debug('Update strategy: '.($strategy === self::STRATEGY_COMPOSER ? 'Composer' : 'Direct download'));

$this->debug('Getting the latest release information from GitHub...');
Expand All @@ -127,7 +122,7 @@ public function handle(): int
return Command::SUCCESS;
}

if ($state !== self::STATE_BEHIND && ! $this->option('force-composer-update')) {
if ($state !== self::STATE_BEHIND) {
return Command::SUCCESS;
}

Expand All @@ -139,7 +134,7 @@ public function handle(): int

$this->info('The application has been updated successfully.');

// Verify the application version (// Fixme: This shows the old version when using Composer to update {@see https://github.com/hydephp/cli/issues/97})
// Verify the application version (// Fixme: This sometimes shows the old version when using direct install {@see https://github.com/hydephp/cli/issues/97})
passthru('hyde --version --ansi');

// Now we can exit the application, we do this manually to avoid issues when Laravel tries to clean up the application
Expand Down Expand Up @@ -253,6 +248,7 @@ protected function printVersionStateInformation(int $state): void
/** @param self::STRATEGY_* $strategy */
protected function updateApplication(string $strategy): void
{
$this->printNewlineIfVerbose();
$this->debug('Updating the application...');

match ($strategy) {
Expand Down
Binary file modified builds/hyde
Binary file not shown.
Binary file modified builds/hyde.sig
Binary file not shown.
Binary file modified builds/signature.bin
Binary file not shown.

0 comments on commit 43f97c8

Please sign in to comment.