forge/app/Console/Commands/ResolveVersionsCommand.php
Refringe db578071e4
SPT Semvar & Automatic Resolution
This update gives mod versions a supported SPT version field that accepts a semantic version. The latest supported SPT version will be automatically resolved based on the semvar.

Next up: I need to update the ModVersion to SptVersion relationship to be a many-to-many and expand the resolution to resolve multiple versions.
2024-08-22 17:04:07 -04:00

23 lines
567 B
PHP

<?php
namespace App\Console\Commands;
use App\Jobs\ResolveDependenciesJob;
use App\Jobs\ResolveSptVersionsJob;
use Illuminate\Console\Command;
class ResolveVersionsCommand extends Command
{
protected $signature = 'app:resolve-versions';
protected $description = 'Resolve SPT and dependency versions for all mods.';
public function handle(): void
{
ResolveSptVersionsJob::dispatch()->onQueue('long');
ResolveDependenciesJob::dispatch()->onQueue('long');
$this->info('The import job has been added to the queue.');
}
}