21 lines
346 B
JavaScript
21 lines
346 B
JavaScript
const entry = App.configDir + "/ts/main.ts";
|
|
const outdir = "/tmp/ags/js";
|
|
|
|
try {
|
|
await Utils.execAsync([
|
|
"bun",
|
|
"build",
|
|
entry,
|
|
"--outdir",
|
|
outdir,
|
|
"--external",
|
|
"resource://*",
|
|
"--external",
|
|
"gi://*"
|
|
]);
|
|
await import(`file://${outdir}/main.js`);
|
|
} catch (error) {
|
|
console.error(error);
|
|
}
|
|
|
|
export {};
|