[client] Updater update
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user