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

@@ -118,6 +118,7 @@ return [
'Session' => Illuminate\Support\Facades\Session::class,
'Storage' => Illuminate\Support\Facades\Storage::class,
'Theme' => Igaster\LaravelTheme\Facades\Theme::class,
'Updater' => Codedge\Updater\UpdaterFacade::class,
'URL' => Illuminate\Support\Facades\URL::class,
'Utils' => App\Facades\Utils::class,
'Validator' => Illuminate\Support\Facades\Validator::class,

View File

@@ -75,6 +75,11 @@ return [
*/
'version_file' => 'https://api.github.com/repos/nabeelio/phpvms/releases',
/**
* The URL to download the latest phpVMS version from
*/
'distrib_url' => 'http://downloads.phpvms.net/phpvms-{VERSION}.zip',
/*
* Where the KVP file is stored
*/

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',