| 146 | // ============= Helper Functions ============= |
| 147 | |
| 148 | const getPlatformEnum = (platformType: PlatformType): BuildPlatform => { |
| 149 | const platformMap: Record<PlatformType, BuildPlatform> = { |
| 150 | 'web': BuildPlatform.Web, |
| 151 | 'wechat-minigame': BuildPlatform.WeChatMiniGame, |
| 152 | 'windows': BuildPlatform.Desktop, |
| 153 | 'macos': BuildPlatform.Desktop, |
| 154 | 'linux': BuildPlatform.Desktop, |
| 155 | 'android': BuildPlatform.Android, |
| 156 | 'ios': BuildPlatform.iOS |
| 157 | }; |
| 158 | return platformMap[platformType]; |
| 159 | }; |
| 160 | |
| 161 | // ============= Store ============= |
| 162 | |