From d25002501eda3f95c5ac1225a0fbd0388d8eac19 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 19 Mar 2022 13:00:29 +1100 Subject: [PATCH] Fixes for self updater --- app/Http/Controllers/SelfUpdateController.php | 7 +++++++ 1 file changed, 7 insertions(+) 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" + } }