modernize schema, add meta information

This commit is contained in:
henryruhs
2026-03-08 16:50:51 +01:00
parent f6608d83cb
commit b5ec411202
2 changed files with 45 additions and 9 deletions
+5 -7
View File
@@ -1,10 +1,8 @@
const path = require('path');
module.exports = async kernel =>
module.exports = async (kernel, info) =>
{
const menu = [];
if (!await kernel.exists(path.resolve(__dirname, '.env')))
if (!info.exists('.env'))
{
menu.push(
{
@@ -21,7 +19,7 @@ module.exports = async kernel =>
return menu;
}
if (!await kernel.running(__dirname, 'run.js') && !await kernel.running(__dirname, 'install.js') && !await kernel.running(__dirname, 'update.js') && !await kernel.running(__dirname, 'reset.js'))
if (!info.running('run.js') && !info.running('install.js') && !info.running('update.js') && !info.running('reset.js'))
{
[
[ 'fa-solid fa-power-off', 'Run Default', 'Default' ],
@@ -45,9 +43,9 @@ module.exports = async kernel =>
});
});
}
if (await kernel.running(__dirname, 'run.js'))
if (info.running('run.js'))
{
const memory = await kernel.memory.local[path.resolve(__dirname, 'run.js')];
const memory = info.local('run.js');
if (memory && memory.url && memory.mode)
{
+40 -2
View File
@@ -1,8 +1,46 @@
module.exports =
{
version: '1.6',
version: '3.7',
title: 'FaceFusion 3.5.4',
description: 'Industry leading face manipulation platform',
icon: 'facefusion.png',
menu: require(__dirname + '/menu.js')
menu: require(__dirname + '/menu.js'),
links:
[
{
title: 'Website',
value: 'https://facefusion.io'
},
{
title: 'BuyMeACoffee',
value: 'https://buymeacoffee.com/facefusion'
},
{
title: 'GitHub',
value: 'https://github.com/facefusion/facefusion'
},
{
title: 'Discord',
value: 'https://join.facefusion.io'
},
{
title: 'Reddit',
value: 'https://www.reddit.com/r/FaceFusion'
}
],
posts:
[
'https://x.com/henryruhs/status/2006365527732805699',
'https://x.com/henryruhs/status/1936856829230829729',
'https://x.com/henryruhs/status/1918628540586570060',
'https://x.com/henryruhs/status/1886753221785378838',
'https://x.com/henryruhs/status/1792536713513914663',
'https://x.com/henryruhs/status/1779901408793207040',
'https://x.com/henryruhs/status/1779237354705711384',
'https://x.com/henryruhs/status/1769488758041088372',
'https://x.com/henryruhs/status/1766049705148973146',
'https://x.com/henryruhs/status/1759669022100947360',
'https://x.com/henryruhs/status/1757833820718477533',
'https://x.com/henryruhs/status/1735422051253420379'
]
};