Skip to content

Commit 4ae073a

Browse files
authored
[email protected]: Fix checkver, refactor installer logic (#16871)
1 parent ddf352a commit 4ae073a

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

bucket/jasper.json

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,39 @@
11
{
22
"version": "1.1.2",
3-
"description": "Flexible and powerful issue reader for GitHub",
3+
"description": "A flexible and powerful issue reader for GitHub.",
44
"homepage": "https://jasperapp.io",
5-
"license": "MIT",
5+
"license": {
6+
"identifier": "MIT",
7+
"url": "https://github.com/jasperapp/jasper/blob/HEAD/LICENSE"
8+
},
69
"architecture": {
710
"64bit": {
8-
"url": "https://github.com/jasperapp/jasper/releases/download/v1.1.2/jasper_v1.1.2_windows_setup.exe#/dl.7z",
11+
"url": "https://github.com/jasperapp/jasper/releases/download/v1.1.2/jasper_v1.1.2_windows_setup.exe",
912
"hash": "d3ff48f0cde1f4f4063c690ca9b89f788ebacde9bf6f081a7bd7d90cfd8ff57e"
1013
}
1114
},
12-
"pre_install": "Expand-7zipArchive \"$dir\\jasper-$version-full.nupkg\" -ExtractDir 'lib\\net45' -Removal | Out-Null",
15+
"installer": {
16+
"script": [
17+
"Expand-7zipArchive -Path \"$dir\\$fname\" -DestinationPath $dir -Switches '-x!*.gif' -Removal",
18+
"$nupkg_file = Get-ChildItem -Path $dir -Filter '*.nupkg' -File | Select-Object -ExpandProperty FullName",
19+
"Expand-7zipArchive -Path $nupkg_file -DestinationPath \"$dir\\app-$version\" -ExtractDir 'lib\\net45' -Removal",
20+
"Move-Item -Path \"$dir\\app-$version\\jasper_ExecutionStub.exe\" -Destination \"$dir\\jasper.exe\"",
21+
"New-Item -Path \"$dir\\packages\" -ItemType Directory -Force | Out-Null",
22+
"Move-Item -Path \"$dir\\RELEASES\" -Destination \"$dir\\packages\""
23+
]
24+
},
1325
"shortcuts": [
1426
[
15-
"Jasper.exe",
27+
"jasper.exe",
1628
"Jasper"
1729
]
1830
],
1931
"checkver": {
20-
"github": "https://github.com/jasperapp/jasper"
32+
"url": "https://api.github.com/repositories/58461278/releases",
33+
"jsonpath": "$[?(@.prerelease == false && @.assets[?(@.browser_download_url =~ /windows/i)])].tag_name",
34+
"regex": "(?<=\")(?<tag>v?([\\d.]+))(?=\")"
2135
},
2236
"autoupdate": {
23-
"url": "https://github.com/jasperapp/jasper/releases/download/v$version/jasper_v$version_windows_setup.exe#/dl.7z"
37+
"url": "https://github.com/jasperapp/jasper/releases/download/$matchTag/jasper_v$version_windows_setup.exe"
2438
}
2539
}

0 commit comments

Comments
 (0)