Auto update #449 (#545)

* Add custom repository type for updates

* Direct to self update module

* Formatting
This commit is contained in:
Nabeel S
2020-02-10 17:47:46 -05:00
committed by GitHub
parent 3fcd378f91
commit 99118daad9
14 changed files with 281 additions and 49 deletions

View File

@@ -1,8 +1,8 @@
<?php
return [
'default' => 'http',
'version_installed' => env('SELF_UPDATER_VERSION_INSTALLED', ''),
'default' => 'vms',
'version_installed' => '',
'repository_types' => [
'github' => [
@@ -10,19 +10,19 @@ return [
'repository_vendor' => 'nabeelio',
'repository_name' => 'phpvms',
'repository_url' => 'https://github.com/nabeelio/phpvms',
'download_path' => env('SELF_UPDATER_DOWNLOAD_PATH', '/tmp'),
'download_path' => storage_path('app'),
'private_access_token' => '',
'use_branch' => 'master',
],
'http' => [
'type' => 'http',
'repository_url' => 'http://downloads.phpvms.net',
'pkg_filename_format' => 'phpvms-_VERSION_.zip',
'download_path' => env('SELF_UPDATER_DOWNLOAD_PATH', '/tmp'),
'private_access_token' => env('SELF_UPDATER_HTTP_PRIVATE_ACCESS_TOKEN', ''),
'use_branch' => '',
],
],
'mail_to' => [
'address' => 'no-reply@phpvms.net',
'name' => 'no name',
'subject_update_available' => 'Update available',
'subject_update_succeeded' => 'Update succeeded',
],
'exclude_folders' => [
'node_modules',
'bootstrap/cache',