Skip to content

Commit

Permalink
Add self updater
Browse files Browse the repository at this point in the history
  • Loading branch information
jonerickson committed Aug 14, 2023
1 parent 114eab2 commit 36a298e
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 1 deletion.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"illuminate/view": "^10.0",
"laminas/laminas-text": "^2.9",
"laravel-zero/framework": "^10.0.2",
"laravel-zero/phar-updater": "^1.3",
"nunomaduro/termwind": "^1.15.1"
},
"require-dev": {
Expand Down
62 changes: 61 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions config/updater.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

use LaravelZero\Framework\Components\Updater\Strategy\GithubReleasesStrategy;

return [

/*
|--------------------------------------------------------------------------
| Self-updater Strategy
|--------------------------------------------------------------------------
|
| Here you may specify which update strategy class you wish to use when
| updating your application via the "self-update" command. This must
| be a class that implements the StrategyInterface from Humbug.
|
*/

'strategy' => GithubReleasesStrategy::class,

];

0 comments on commit 36a298e

Please sign in to comment.