add download links to Github releases

This commit is contained in:
z4yx 2020-02-12 18:51:22 +08:00
parent 9570af9c9c
commit 0e029bbabb
No known key found for this signature in database
GPG Key ID: C33353BE0649AF35
3 changed files with 60 additions and 0 deletions

View File

@ -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">

View File

@ -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

View File

@ -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)