diff --git a/app/Http/Controllers/SelfUpdateController.php b/app/Http/Controllers/SelfUpdateController.php index 62a5e5f9c51a..89a3450bac93 100644 --- a/app/Http/Controllers/SelfUpdateController.php +++ b/app/Http/Controllers/SelfUpdateController.php @@ -113,4 +113,11 @@ class SelfUpdateController extends BaseController { return trim(file_get_contents(config('ninja.version_url'))); } + + private function getDownloadUrl() + { + $version = $this->checkVersion(); + + return "https://github.com/invoiceninja/invoiceninja/releases/download/v{$verion}/invoiceninja.zip" + } }