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();
|
2024-08-03 00:17:39 +02:00
|
|
|
}
|