Skip to content

Commit d6a084b

Browse files
committed
start adding appimage support
1 parent c9ce3c9 commit d6a084b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ class Updates {
7373

7474
const assetPlatform = fileName => {
7575
if (/.*(mac|darwin).*\.zip/.test(fileName)) return 'darwin'
76+
if (/\.AppImage$/.test(fileName)) return 'appimage'
7677
return false
7778
}
7879

test/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ test('Updates', async t => {
6767
body = await res.json()
6868
t.match(body.url, /-darwin\.zip$/)
6969
})
70+
71+
await t.test('AppImage', async t => {
72+
let res = await fetch(`${address}/zeit/hyper/appimage/0.0.0`)
73+
t.equal(res.status, 200)
74+
let body = await res.json()
75+
t.match(body.url, /\.AppImage$/)
76+
})
7077
})
7178

7279
server.close()

0 commit comments

Comments
 (0)