added starship

This commit is contained in:
Charlie Root 2024-07-06 22:13:28 +02:00
commit f4f1c5bba7
15 changed files with 553 additions and 71 deletions

View file

@ -0,0 +1,21 @@
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();
}