nix/home/ags/bar/config.js
2024-08-21 21:43:49 +02:00

16 lines
357 B
JavaScript

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