使用 scoop 安装管理 windows 软件(3):自己制作一个安装配置文件

ref: (https://github.com/ScoopInstaller/Scoop/wiki/App-Manifests)

尝试自己制作一个安装配置文件, 软件是 N_m3u8DL-RE

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
"version": "v0.2.0-beta",
"description": "Cross-Platform, modern and powerful stream downloader for MPD/M3U8/ISM",
"homepage": "https://github.com/nilaoda/N_m3u8DL-RE",
"license": "MIT",
"suggest": {
"ffmpeg": [
"ffmpeg",
"ffmpeg-nightly"
]
},
"url": "https://github.com/nilaoda/N_m3u8DL-RE/releases/download/v0.2.0-beta/N_m3u8DL-RE_Beta_win-x64_20230628.zip",
"hash": "9e3133f03e112cc57f34bf04234b7857ae7c997c214f0eb510a120739c388652",
"bin": [
"N_m3u8DL-RE_Beta_win-x64/N_m3u8DL-RE.exe",
[
"N_m3u8DL-RE.exe",
"N_m3u8DL_RE"
]
],
"checkver": {
"url": "https://api.github.com/repos/nilaoda/N_m3u8DL-RE/releases",
"regex": "releases/download/(?<tag>[vV]?[\\w-.]+)/N_m3u8DL-RE_Beta_win-x64_(?<date>[\\d.-]+).zip",
"replace": "${tag}"
},
"autoupdate": {
"url": "https://github.com/nilaoda/N_m3u8DL-RE/releases/download/$matchTag/N_m3u8DL-RE_Beta_win-x64_$matchDate.zip"
}
}

参数说明:

  • url: 下载地址

  • hash: 可缺省。 要添加的话: aria2 下载后会有输出,复制过来。

  • bin: 可执行文件的相对路径,根目录是 ~\scoop\apps\XXXX\current\

  • checkver: 可缺省。

  • autoupdate: 可缺省。
    这两项原理也搞不清楚,看其他类似软件的配置文件做相对应修改。