[client] Updater update

This commit is contained in:
2019-09-04 22:46:06 +03:00
parent 5f24e85deb
commit 4d7fcb4b4b
6 changed files with 48 additions and 20 deletions

View File

@@ -19,7 +19,7 @@ class Package {
static getPlatform(filename) {
for (const [platform, r] of [
['android', /^.*?\.apk$/],
['debian', /^.*?\.deb$/],
['linux', /^.*?\.deb$/],
['linux', /^.*?linux\.tar\.gz$/],
['windows', /^.*?win\.zip$/],
['windows', /^.*?\.exe$/],
@@ -37,7 +37,7 @@ class Package {
['deb', /^.*?\.deb$/],
['archive', /^.*?\.tar\.gz$/],
['archive', /^.*?\.zip$/],
['installer', /^.*?\.exe$/],
['exe', /^.*?\.exe$/],
]) {
if (r.test(filename)) {
return type;