Skip to content

Commit

Permalink
improved update script
Browse files Browse the repository at this point in the history
  • Loading branch information
nemerald-voip committed Oct 30, 2024
1 parent 13fea34 commit 643e64e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/Console/Commands/UpdateApp.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ public function handle()
}
}

if (version_compare($currentVersion, $downloadedVersion, '<')) {
// Call version:set to update the version to the latest one, even if no steps were needed
$this->call('version:set', ['version' => $downloadedVersion]);
$this->info("Version successfully updated to $downloadedVersion.");
}

// Composer install
$this->executeCommand('composer install --no-interaction --ignore-platform-reqs');
$this->executeCommand('composer dump-autoload --no-interaction --ignore-platform-reqs');
Expand Down

0 comments on commit 643e64e

Please sign in to comment.