mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-01-31 15:37:09 +01:00
feat: add mac as platform
This commit is contained in:
@@ -154,6 +154,10 @@ class LibraryManager {
|
||||
// Pretty much the only one
|
||||
".exe",
|
||||
],
|
||||
macOS: [
|
||||
// App files
|
||||
".app",
|
||||
],
|
||||
};
|
||||
|
||||
const options: Array<{
|
||||
@@ -302,10 +306,8 @@ class LibraryManager {
|
||||
nonce: `version-create-${gameId}-${versionName}`,
|
||||
title: `'${game.mName}' ('${versionName}') finished importing.`,
|
||||
description: `Drop finished importing version ${versionName} for ${game.mName}.`,
|
||||
actions: [
|
||||
`View|/admin/library/${gameId}`
|
||||
]
|
||||
})
|
||||
actions: [`View|/admin/library/${gameId}`],
|
||||
});
|
||||
|
||||
progress(100);
|
||||
},
|
||||
|
||||
@@ -8,6 +8,10 @@ export function parsePlatform(platform: string) {
|
||||
case "windows":
|
||||
case "Windows":
|
||||
return Platform.Windows;
|
||||
case "macOS":
|
||||
case "MacOS":
|
||||
case "mac":
|
||||
return Platform.macOS;
|
||||
}
|
||||
|
||||
return undefined;
|
||||
|
||||
Reference in New Issue
Block a user