2020-02-05 05:06:03 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
2020-03-21 06:37:30 +01:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Default source repository type
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| The default source repository type you want to pull your updates from.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
'default' => env('SELF_UPDATER_SOURCE', 'github'),
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Version installed
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Set this to the version of your software installed on your system.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
'version_installed' => env('SELF_UPDATER_VERSION_INSTALLED', ''),
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Repository types
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| A repository can be of different types, which can be specified here.
|
|
|
|
| Current options:
|
|
|
|
| - github
|
|
|
|
| - http
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
'repository_types' => [
|
|
|
|
'github' => [
|
|
|
|
'type' => 'github',
|
|
|
|
'repository_vendor' => env('SELF_UPDATER_REPO_VENDOR', ''),
|
|
|
|
'repository_name' => env('SELF_UPDATER_REPO_NAME', ''),
|
|
|
|
'repository_url' => '',
|
|
|
|
'download_path' => env('SELF_UPDATER_DOWNLOAD_PATH', '/tmp'),
|
|
|
|
'private_access_token' => env('SELF_UPDATER_GITHUB_PRIVATE_ACCESS_TOKEN', ''),
|
|
|
|
'use_branch' => env('SELF_UPDATER_BRANCH_NAME', 'v2'),
|
|
|
|
|
|
|
|
],
|
|
|
|
'http' => [
|
|
|
|
'type' => 'http',
|
|
|
|
'repository_url' => env('SELF_UPDATER_REPO_URL', ''),
|
|
|
|
'pkg_filename_format' => env('SELF_UPDATER_PKG_FILENAME_FORMAT', 'v_VERSION_'),
|
|
|
|
'download_path' => env('SELF_UPDATER_DOWNLOAD_PATH', '/tmp'),
|
|
|
|
'private_access_token' => env('SELF_UPDATER_HTTP_PRIVATE_ACCESS_TOKEN', ''),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Exclude folders from update
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Specifiy folders which should not be updated and will be skipped during the
|
|
|
|
| update process.
|
|
|
|
|
|
|
|
|
| Here's already a list of good examples to skip. You may want to keep those.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
'exclude_folders' => [
|
|
|
|
'node_modules',
|
|
|
|
'bootstrap/cache',
|
|
|
|
'bower',
|
|
|
|
'storage/app',
|
|
|
|
'storage/framework',
|
|
|
|
'storage/logs',
|
|
|
|
'storage/self-update',
|
|
|
|
'vendor',
|
|
|
|
],
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Event Logging
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Configure if fired events should be logged
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2020-04-12 13:51:27 +02:00
|
|
|
'log_events' => env('SELF_UPDATER_LOG_EVENTS', true),
|
2020-03-21 06:37:30 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Mail To Settings
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Configure if fired events should be logged
|
|
|
|
|
|
|
|
|
*/
|
2020-04-20 02:55:09 +02:00
|
|
|
'notifications' => [
|
|
|
|
'notifications' => [
|
|
|
|
\Codedge\Updater\Notifications\Notifications\UpdateSucceeded::class => ['mail'],
|
|
|
|
\Codedge\Updater\Notifications\Notifications\UpdateFailed::class => ['mail'],
|
|
|
|
\Codedge\Updater\Notifications\Notifications\UpdateAvailable::class => ['mail'],
|
|
|
|
],
|
2020-03-21 06:37:30 +01:00
|
|
|
|
2020-04-20 02:55:09 +02:00
|
|
|
/*
|
|
|
|
* Here you can specify the notifiable to which the notifications should be sent. The default
|
|
|
|
* notifiable will use the variables specified in this config file.
|
|
|
|
*/
|
|
|
|
'notifiable' => \Codedge\Updater\Notifications\Notifiable::class,
|
|
|
|
|
|
|
|
'mail' => [
|
|
|
|
'to' => [
|
|
|
|
'address' => env('SELF_UPDATER_MAILTO_ADDRESS', 'notifications@example.com'),
|
|
|
|
'name' => env('SELF_UPDATER_MAILTO_NAME', ''),
|
|
|
|
],
|
|
|
|
|
|
|
|
'from' => [
|
|
|
|
'address' => env('SELF_UPDATER_MAIL_FROM_ADDRESS', 'updater@example.com'),
|
|
|
|
'name' => env('SELF_UPDATER_MAIL_FROM_NAME', 'Update'),
|
|
|
|
],
|
|
|
|
],
|
2020-03-21 06:37:30 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
/*
|
|
|
|
|---------------------------------------------------------------------------
|
|
|
|
| Register custom artisan commands
|
|
|
|
|---------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
'artisan_commands' => [
|
|
|
|
'pre_update' => [
|
|
|
|
//'command:signature' => [
|
|
|
|
// 'class' => Command class
|
|
|
|
// 'params' => []
|
|
|
|
//]
|
|
|
|
],
|
|
|
|
'post_update' => [
|
|
|
|
'ninja:post-update' => [
|
2020-04-20 00:35:48 +02:00
|
|
|
'class' => \App\Console\Commands\PostUpdate::class,
|
2020-05-25 01:45:12 +02:00
|
|
|
'params' => []
|
2020-04-21 07:16:45 +02:00
|
|
|
],
|
2020-03-21 06:37:30 +01:00
|
|
|
],
|
|
|
|
],
|
2020-02-05 05:06:03 +01:00
|
|
|
|
2020-04-20 00:35:48 +02:00
|
|
|
];
|