mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-24 08:12:24 +02:00
Tools: Ignore unsupport tags
This commit is contained in:
parent
caf66068bf
commit
a04be2b28a
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user