Skip to content

Commit

Permalink
fix: set correct update command
Browse files Browse the repository at this point in the history
  • Loading branch information
jesusantguerrero committed Oct 3, 2024
1 parent 1f6d5c7 commit 62c1d2e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/Console/Commands/CheckUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ public function handle()
$latestVersion = $latestRelease['tag_name'];

if (version_compare($latestVersion, $currentVersion, '>')) {
print_r("app:update-version --version $latestVersion --zipUrl {$latestRelease['zipball_url']}");
// Trigger the update process if the latest version is newer
Artisan::call('app:update-version', ['--version' => $latestVersion, '--zipUrl' => $latestRelease['zipball_url']]);
Artisan::call('update:run', ['--tag' => $latestVersion, '--endpoint' => $latestRelease['zipball_url']]);
}
}
}

0 comments on commit 62c1d2e

Please sign in to comment.