|
1 | 1 | { |
2 | 2 | "version": "1.1.2", |
3 | | - "description": "Flexible and powerful issue reader for GitHub", |
| 3 | + "description": "A flexible and powerful issue reader for GitHub.", |
4 | 4 | "homepage": "https://jasperapp.io", |
5 | | - "license": "MIT", |
| 5 | + "license": { |
| 6 | + "identifier": "MIT", |
| 7 | + "url": "https://github.com/jasperapp/jasper/blob/HEAD/LICENSE" |
| 8 | + }, |
6 | 9 | "architecture": { |
7 | 10 | "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", |
9 | 12 | "hash": "d3ff48f0cde1f4f4063c690ca9b89f788ebacde9bf6f081a7bd7d90cfd8ff57e" |
10 | 13 | } |
11 | 14 | }, |
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 | + }, |
13 | 25 | "shortcuts": [ |
14 | 26 | [ |
15 | | - "Jasper.exe", |
| 27 | + "jasper.exe", |
16 | 28 | "Jasper" |
17 | 29 | ] |
18 | 30 | ], |
19 | 31 | "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.]+))(?=\")" |
21 | 35 | }, |
22 | 36 | "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" |
24 | 38 | } |
25 | 39 | } |
0 commit comments