We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9ce3c9 commit d6a084bCopy full SHA for d6a084b
index.js
@@ -73,6 +73,7 @@ class Updates {
73
74
const assetPlatform = fileName => {
75
if (/.*(mac|darwin).*\.zip/.test(fileName)) return 'darwin'
76
+ if (/\.AppImage$/.test(fileName)) return 'appimage'
77
return false
78
}
79
test/index.js
@@ -67,6 +67,13 @@ test('Updates', async t => {
67
body = await res.json()
68
t.match(body.url, /-darwin\.zip$/)
69
})
70
+
71
+ await t.test('AppImage', async t => {
72
+ let res = await fetch(`${address}/zeit/hyper/appimage/0.0.0`)
+ t.equal(res.status, 200)
+ let body = await res.json()
+ t.match(body.url, /\.AppImage$/)
+ })
server.close()
0 commit comments