Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-dale committed Apr 21, 2022
2 parents f63447c + 54c86e7 commit ce523ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/class/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ public function releaseAvailable() {
}

public static function update($release) {
file_put_contents("lib/{$release["assets"][0]["name"]}", file_get_contents($release["assets"][0]["browser_download_url"]));
file_put_contents("lib/{$release["tag_name"]}", file_get_contents($release["assets"][0]["browser_download_url"]));
$zip = new \ZipArchive();
$zip->open("lib/{$release["assets"][0]["name"]}");
$zip->open("lib/VerbatimCMS-{$release["tag_name"]}");
$zip->extractTo("lib/update");
$zip->close();

Expand All @@ -45,7 +45,7 @@ public static function update($release) {
\App\Util::copyRecursive("lib/update/vendor", "./vendor");
self::updateConfigs($release);

unlink("lib/{$release["assets"][0]["name"]}");
unlink("lib/{$release["tag_name"]}");
}

private static function loadConfigs() {
Expand Down
4 changes: 2 additions & 2 deletions lib/configs/verbatimcms.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "1.0.0-beta.3",
"lastUpdateCheck": 1650322877,
"version": "v1.0.0-beta.3",
"lastUpdateCheck": 1650561861,
"betaReleases": true,
"updated": true
}

0 comments on commit ce523ce

Please sign in to comment.