snowflake/home/programs/ags/config/config.js

22 lines
346 B
JavaScript
Raw Normal View History

2024-04-18 00:34:40 -04:00
const entry = App.configDir + "/ts/main.ts";
const outdir = "/tmp/ags/js";
2023-11-28 12:43:33 -05:00
2024-04-18 00:34:40 -04:00
try {
await Utils.execAsync([
"bun",
"build",
entry,
"--outdir",
outdir,
"--external",
"resource://*",
"--external",
"gi://*"
]);
await import(`file://${outdir}/main.js`);
} catch (error) {
console.error(error);
2024-01-01 21:29:18 -05:00
}
2024-04-18 00:34:40 -04:00
export {};