hardcode system-tray and window-customization to compatibility table (#2777)

This commit is contained in:
Vitor Ayres
2024-10-02 03:56:52 -03:00
committed by GitHub
parent c631bbfb87
commit 0d420c5eec

View File

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