-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathelectrobun.config.ts
More file actions
43 lines (41 loc) · 1.12 KB
/
electrobun.config.ts
File metadata and controls
43 lines (41 loc) · 1.12 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
43
import type { ElectrobunConfig } from "electrobun";
import { readFileSync } from "node:fs";
const releaseBaseUrl = process.env["RELEASE_BASE_URL"] || "";
const enableCodesign = process.env["ELECTROBUN_ENABLE_CODESIGN"] === "true";
const enableNotarize = process.env["ELECTROBUN_ENABLE_NOTARIZE"] === "true";
const packageVersion = JSON.parse(readFileSync(new URL("./package.json", import.meta.url), "utf8")).version;
export default {
app: {
name: "Loopndroll",
identifier: "dev.loopndroll.app",
version: packageVersion,
},
release: {
baseUrl: releaseBaseUrl,
generatePatch: false,
},
build: {
bun: {
entrypoint: "src/bun/index.ts",
},
copy: {
"dist/index.html": "views/app/index.html",
"dist/assets": "views/app/assets",
},
watchIgnore: ["dist/**"],
mac: {
codesign: enableCodesign,
notarize: enableNotarize,
bundleCEF: false,
icons: "build/icon.iconset",
},
linux: {
bundleCEF: false,
icon: "build/icon.png",
},
win: {
bundleCEF: false,
icon: "build/icon.png",
},
},
} satisfies ElectrobunConfig;