From 64242c193f2df4801033033e8ba3111546f8021b Mon Sep 17 00:00:00 2001 From: Aliaksandr Belik Date: Wed, 19 Jun 2024 17:53:41 +0300 Subject: [PATCH 1/3] zettlr-nightly: Add version 3.2.0 --- bucket/zettlr-nightly.json | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 bucket/zettlr-nightly.json diff --git a/bucket/zettlr-nightly.json b/bucket/zettlr-nightly.json new file mode 100644 index 00000000000..e327555d04f --- /dev/null +++ b/bucket/zettlr-nightly.json @@ -0,0 +1,36 @@ +{ + "version": "3.2.0", + "description": "Powerful markdown editor (nightly version)", + "homepage": "https://www.zettlr.com", + "license": "GPL-3.0-or-later", + "architecture": { + "64bit": { + "url": "https://nightly.zettlr.com/Zettlr-3.2.0-nightly-x64.exe#/dl.7z", + "hash": "d387171d8d1668c53ef123bf07d25b46f0ef629d8e938bbc1b074247330be72e", + "pre_install": [ + "Expand-7zipArchive \"$dir\\`$PLUGINSDIR\\app-64.7z\" \"$dir\"", + "Remove-Item \"$dir\\`$*\", \"$dir\\Uninstall*\" -Force -Recurse" + ] + } + }, + "shortcuts": [ + [ + "Zettlr.exe", + "Zettlr" + ] + ], + "checkver": { + "url": "https://nightly.zettlr.com/", + "regex": "Zettlr-([\\d.]+)-nightly-x64\\.exe" + }, + "autoupdate": { + "architecture": { + "64bit": { + "url": "https://nightly.zettlr.com/Zettlr-$version-nightly-x64.exe#/dl.7z" + } + }, + "hash": { + "url": "$baseurl/SHA256SUMS.txt" + } + } +} From 2e7bf284c5ae868325629b8f8e37c669c230229f Mon Sep 17 00:00:00 2001 From: Aliaksandr Belik Date: Tue, 16 Jul 2024 17:27:06 +0300 Subject: [PATCH 2/3] zettlr-nightly@3.2.0: Update hash --- bucket/zettlr-nightly.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bucket/zettlr-nightly.json b/bucket/zettlr-nightly.json index e327555d04f..64e0833a6dc 100644 --- a/bucket/zettlr-nightly.json +++ b/bucket/zettlr-nightly.json @@ -6,7 +6,7 @@ "architecture": { "64bit": { "url": "https://nightly.zettlr.com/Zettlr-3.2.0-nightly-x64.exe#/dl.7z", - "hash": "d387171d8d1668c53ef123bf07d25b46f0ef629d8e938bbc1b074247330be72e", + "hash": "f337fb9c695dfd224d953a8734df94947af8230fdeaa9bce83c6993ae50ac1b9", "pre_install": [ "Expand-7zipArchive \"$dir\\`$PLUGINSDIR\\app-64.7z\" \"$dir\"", "Remove-Item \"$dir\\`$*\", \"$dir\\Uninstall*\" -Force -Recurse" From b482e4a7d3ccaea29b83bdbd1940c9cf583454ae Mon Sep 17 00:00:00 2001 From: Aliaksandr Belik Date: Wed, 24 Jul 2024 06:09:41 +0300 Subject: [PATCH 3/3] zettlr-nightly: Update to version 3.2.0-20240722, fix checkver & autoupdate Add date to versioning schema --- bucket/zettlr-nightly.json | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/bucket/zettlr-nightly.json b/bucket/zettlr-nightly.json index 64e0833a6dc..9a35430d2e3 100644 --- a/bucket/zettlr-nightly.json +++ b/bucket/zettlr-nightly.json @@ -1,12 +1,12 @@ { - "version": "3.2.0", + "version": "3.2.0-20240722", "description": "Powerful markdown editor (nightly version)", "homepage": "https://www.zettlr.com", "license": "GPL-3.0-or-later", "architecture": { "64bit": { "url": "https://nightly.zettlr.com/Zettlr-3.2.0-nightly-x64.exe#/dl.7z", - "hash": "f337fb9c695dfd224d953a8734df94947af8230fdeaa9bce83c6993ae50ac1b9", + "hash": "d0949b975371fa5011900e2d9a51527f451d3e77183b02fb3261e61e97aee19a", "pre_install": [ "Expand-7zipArchive \"$dir\\`$PLUGINSDIR\\app-64.7z\" \"$dir\"", "Remove-Item \"$dir\\`$*\", \"$dir\\Uninstall*\" -Force -Recurse" @@ -20,13 +20,27 @@ ] ], "checkver": { - "url": "https://nightly.zettlr.com/", - "regex": "Zettlr-([\\d.]+)-nightly-x64\\.exe" + "script": [ + "$url = 'https://nightly.zettlr.com/'", + "$ver_regex = 'Zettlr-([\\d.]+)-nightly-x64\\.exe'", + "$date_regex = '(\\S.+)<\\/strong>'", + "", + "$page = $(Invoke-WebRequest $url).Content", + "if (!($page -match $ver_regex)) { error \"Could not match '$ver_regex' in '$url'\"; continue }", + "$ver = $matches[1]", + "", + "if (!($page -match $date_regex)) { error \"Could not match '$date_regex' in '$url'\"; continue }", + "$date_full = $matches[1]", + "", + "$date = ([datetime]::ParseExact(($date_full -replace '((th|st|nd|rd),)?'), 'ddd MMM d yyyy H:mm:ss', [cultureinfo]::InvariantCulture)).ToString(\"yyyyMMdd\")", + "Write-Output $ver-$date" + ], + "regex": "([\\d.-]+)" }, "autoupdate": { "architecture": { "64bit": { - "url": "https://nightly.zettlr.com/Zettlr-$version-nightly-x64.exe#/dl.7z" + "url": "https://nightly.zettlr.com/Zettlr-$matchHead-nightly-x64.exe#/dl.7z" } }, "hash": {