16 lines
357 B
JavaScript
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();
|
||
|
}
|