mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
add download links to Github releases
This commit is contained in:
parent
9570af9c9c
commit
0e029bbabb
|
|
@ -148,6 +148,7 @@
|
|||
<ul class="nav nav-tabs">
|
||||
<li role="presentation" :class="[curCategory === 'os' ? 'active' : '']" @click="switchCategory('os')"><a href="#">操作系统</a></li>
|
||||
<li role="presentation" :class="[curCategory === 'app' ? 'active' : '']" @click="switchCategory('app')"><a href="#">应用软件</a></li>
|
||||
<li role="presentation" :class="[curCategory === 'font' ? 'active' : '']" @click="switchCategory('font')"><a href="#">字体</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
|
|
|
|||
|
|
@ -427,3 +427,60 @@ type = x86_64
|
|||
version = $1
|
||||
category = app
|
||||
|
||||
[vscodium win]
|
||||
distro = VS Codium
|
||||
listvers = 10
|
||||
location = github-release/VSCodium/vscodium/*/*
|
||||
pattern = (VSCodium\w+-\w+)-([\.\d]+)\.exe(?!.)
|
||||
platform = Windows
|
||||
type = $1
|
||||
version = $2
|
||||
category = app
|
||||
|
||||
[vscodium linux tar]
|
||||
distro = VS Codium
|
||||
listvers = 10
|
||||
location = github-release/VSCodium/vscodium/*/*
|
||||
pattern = VSCodium-linux-(\w+)-([\.\d]+)\.tar\.gz(?!.)
|
||||
platform = Linux
|
||||
type = $1
|
||||
version = $2
|
||||
category = app
|
||||
|
||||
[vscodium linux package]
|
||||
distro = VS Codium
|
||||
listvers = 10
|
||||
location = github-release/VSCodium/vscodium/*/*
|
||||
pattern = codium[_-]([\.\w-]+)[_\.-](x86_64|amd64|armhf|arm64)\.(\w+)(?!.)
|
||||
platform = Linux
|
||||
type = $2 $3
|
||||
version = $1
|
||||
category = app
|
||||
|
||||
[vscodium mac]
|
||||
distro = VS Codium
|
||||
listvers = 10
|
||||
location = github-release/VSCodium/vscodium/*/*
|
||||
pattern = VSCodium\.([\.\d]+)\.dmg(?!.)
|
||||
platform = macOS
|
||||
type = x86_64
|
||||
version = $1
|
||||
category = app
|
||||
|
||||
[google fonts]
|
||||
distro = Google Noto
|
||||
listvers = 10
|
||||
location = github-release/googlefonts/*/*/*
|
||||
pattern = googlefonts/(noto-\w+)/.*([vV][\.\d-]+\d).*/.+
|
||||
type = $1
|
||||
version = $2
|
||||
category = font
|
||||
|
||||
[Sarasa Gothic]
|
||||
distro = Sarasa Gothic
|
||||
listvers = 10
|
||||
location = github-release/be5invis/Sarasa-Gothic/*/*
|
||||
pattern = .+-(\w+)-([\.\d]+)\.\w+
|
||||
type = $1
|
||||
version = $2
|
||||
category = font
|
||||
|
|
|
|||
|
|
@ -66,6 +66,8 @@ def parseSection(items):
|
|||
|
||||
for prop in ("version", "type", "platform", "category"):
|
||||
imageinfo[prop] = renderTemplate(items.get(prop, ""), result)
|
||||
if 'version' not in imageinfo:
|
||||
imageinfo['version'] = '0.0'
|
||||
|
||||
logger.debug("[JSON] %r", imageinfo)
|
||||
key = renderTemplate(items.get("key_by", ""), result)
|
||||
|
|
|
|||
Loading…
Reference in New Issue