diff --git a/packages/compatibility-table/build.ts b/packages/compatibility-table/build.ts index e1256f6a3..6a9da6e7a 100644 --- a/packages/compatibility-table/build.ts +++ b/packages/compatibility-table/build.ts @@ -3,6 +3,34 @@ import { writeFileSync } from 'node:fs'; import TOML from '@iarna/toml'; import path from 'path'; +const desktopOnlySupport = [ + { + platform: 'windows', + level: 'full', + notes: '', + }, + { + platform: 'linux', + level: 'full', + notes: '', + }, + { + platform: 'macos', + level: 'full', + notes: '', + }, + { + platform: 'android', + level: 'none', + notes: '', + }, + { + platform: 'ios', + level: 'none', + notes: '', + }, +]; + // todo: resolve dir const baseDir = '../plugins-workspace'; const pluginDir = '../plugins-workspace/plugins'; @@ -39,6 +67,16 @@ async function main() { } } + tables['system-tray'] = { + rustVersion: baseRustVersion, + support: desktopOnlySupport, + }; + + tables['window-customization'] = { + rustVersion: baseRustVersion, + support: desktopOnlySupport, + }; + writeFileSync('../../src/components/plugins/_tableContent.json', JSON.stringify(tables, null, 2)); }