Skip to content

Commit 39952c1

Browse files
committed
Fix missing phar name for update strategy
1 parent 90cf5f3 commit 39952c1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/Providers/AppServiceProvider.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use App\Services\ConfigManager;
77
use App\Services\DomainChiefService;
88
use Illuminate\Support\ServiceProvider;
9+
use LaravelZero\Framework\Components\Updater\Strategy\GithubReleasesStrategy;
910

1011
class AppServiceProvider extends ServiceProvider
1112
{
@@ -18,5 +19,9 @@ public function register(): void
1819

1920
$this->app->singleton(AuthService::class);
2021
$this->app->singleton(DomainChiefService::class);
22+
23+
$this->app->afterResolving(GithubReleasesStrategy::class, function (GithubReleasesStrategy $strategy) {
24+
$strategy->setPharName('chief.phar');
25+
});
2126
}
2227
}

0 commit comments

Comments
 (0)