1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Tools: Ignore unsupport tags

This commit is contained in:
Laurent Cozic 2023-05-16 09:39:28 +01:00
parent caf66068bf
commit a04be2b28a

View File

@ -12,6 +12,7 @@ interface LogEntry {
}
enum Platform {
Unknown = 'unknown',
Android = 'android',
Ios = 'ios',
Desktop = 'desktop',
@ -94,7 +95,8 @@ function platformFromTag(tagName: string): Platform {
if (tagName.indexOf('cloud') === 0) return Platform.Cloud;
if (tagName.indexOf('plugin-generator') === 0) return Platform.PluginGenerator;
if (tagName.indexOf('plugin-repo-cli') === 0) return Platform.PluginRepoCli;
throw new Error(`Could not determine platform from tag: "${tagName}"`);
return Platform.Unknown;
// throw new Error(`Could not determine platform from tag: "${tagName}"`);
}
export const filesApplyToPlatform = (files: string[], platform: string): boolean => {