nix/home/ags/config.js

16 lines
357 B
JavaScript
Raw Normal View History

2024-08-21 21:30:11 +02:00
const main = '/tmp/ags/main.js';
try {
await Utils.execAsync([
'bun', 'build', `${App.configDir}/main.ts`,
'--outfile', main,
'--external', 'resource://*',
'--external', 'gi://*',
'--external', 'file://*',
]);
await import(`file://${main}`);
} catch (error) {
console.error(error);
App.quit();
}