handle other archive types for linux
This commit is contained in:
@@ -11,6 +11,10 @@ function platformForFile(name: string): GamePlatform | null {
|
||||
const lower = name.toLowerCase()
|
||||
if (lower.endsWith('.zip')) return 'windows'
|
||||
if (lower.endsWith('.tar.gz')) return 'linux'
|
||||
if (lower.endsWith('.tar.bz2')) return 'linux'
|
||||
if (lower.endsWith('.tar.xz')) return 'linux'
|
||||
if (lower.endsWith('.tar.zst')) return 'linux'
|
||||
if (lower.endsWith('.tgz')) return 'linux'
|
||||
if (lower.endsWith('.dmg')) return 'macos'
|
||||
if (lower.endsWith('.apk')) return 'android'
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user