Some checks failed
farmcontrol/farmcontrol-ui/pipeline/head There was a failure building this commit
32 lines
698 B
TypeScript
32 lines
698 B
TypeScript
import type { ElectrobunConfig } from 'electrobun'
|
|
import { readFileSync } from 'fs'
|
|
|
|
const packageJson = JSON.parse(readFileSync('./package.json', 'utf8'))
|
|
|
|
export default {
|
|
app: {
|
|
name: 'Farm Control',
|
|
identifier: 'com.tombutcher.farmcontrol',
|
|
version: packageJson.version,
|
|
urlSchemes: ['farmcontrol']
|
|
},
|
|
runtime: {
|
|
exitOnLastWindowClosed: true
|
|
},
|
|
build: {
|
|
bun: {
|
|
entrypoint: 'src/bun/index.ts'
|
|
},
|
|
views: {
|
|
preload: {
|
|
entrypoint: 'src/preload/index.ts'
|
|
}
|
|
},
|
|
copy: {
|
|
'build/index.html': 'views/main/index.html',
|
|
'build/assets': 'views/main/assets'
|
|
},
|
|
watch: ['build']
|
|
}
|
|
} satisfies ElectrobunConfig
|