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 3ab80d5 commit 3c2dacaCopy full SHA for 3c2daca
index.js
@@ -83,6 +83,7 @@ class Updates {
83
const assetPlatform = fileName => {
84
if (/.*(mac|darwin).*\.zip/.test(fileName)) return 'darwin'
85
if (/\.AppImage$/.test(fileName)) return 'appimage'
86
+ if (/\.exe$/.test(fileName)) return 'win32'
87
return false
88
}
89
test/index.js
@@ -74,6 +74,13 @@ test('Updates', async t => {
74
let body = await res.json()
75
t.match(body.url, /\.AppImage$/)
76
})
77
+
78
+ await t.test('Win32', async t => {
79
+ let res = await fetch(`${address}/zeit/hyper/win32/0.0.0`)
80
+ t.equal(res.status, 200)
81
+ let body = await res.json()
82
+ t.match(body.url, /\.exe$/)
+ })
server.close()
0 commit comments