mirror of
https://github.com/tauri-apps/tauri-docs.git
synced 2026-01-31 00:35:16 +01:00
hardcode system-tray and window-customization to compatibility table (#2777)
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user