-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelectrobun.config.ts
More file actions
42 lines (41 loc) · 1.72 KB
/
Copy pathelectrobun.config.ts
File metadata and controls
42 lines (41 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import type { ElectrobunConfig } from "electrobun";
export default {
app: {
name: "Hello Electrobun",
// Reverse-DNS of kortexa.ai. (Was "sh.kortexa.*", cargo-culted from
// upstream's sh.blackboard.* — blackboard.sh really is their domain.)
// NOTE: the identifier keys cache/data paths (~/.cache/<identifier>) and
// the kiosk systemd unit name; existing installs will re-provision under
// the new name and leave the old dirs behind.
identifier: "ai.kortexa.hello-embedded",
version: "0.1.0",
},
build: {
useAsar: true,
cottontail: {
entrypoint: "src/bun/index.ts",
// electrobun/bun currently re-exports the full Three.js and Babylon.js
// stacks. Minifying keeps their unavoidable bundle cost from becoming
// unnecessary parse time on slower embedded CPUs.
minify: true,
},
// Vite owns the renderer bundle now; pull its dist/ into views/mainview/.
// `vite build` runs ahead of `electrobun build` via the npm scripts.
copy: {
"dist/mainview/index.html": "views/mainview/index.html",
"dist/mainview/page2.html": "views/mainview/page2.html",
"dist/mainview/about.html": "views/mainview/about.html",
"dist/mainview/perf.html": "views/mainview/perf.html",
"dist/mainview/three.html": "views/mainview/three.html",
"dist/mainview/assets": "views/mainview/assets",
},
watchIgnore: ["dist/**"],
mac: {
icons: "icon.iconset",
},
// Bare-DRM kiosk target. When building on Linux this selects
// libNativeWrapper_wpe.so (WPE + DRM/KMS + libinput). Ignored when
// building on macOS / Windows — those targets never consult build.linux.*.
linux: { embedded: true },
},
} satisfies ElectrobunConfig;