feat: add mac as platform

This commit is contained in:
DecDuck
2025-03-11 19:02:53 +11:00
parent ffc1537d7f
commit 789361ea73
9 changed files with 41 additions and 24 deletions

View File

@@ -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);
},

View File

@@ -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;