Files
hyprland/config/ags/config.js
T
2024-06-26 00:10:21 +05:45

17 lines
343 B
JavaScript

const entry = App.configDir + '/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 { }