-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy pathelectrobun.config.ts
More file actions
65 lines (62 loc) · 1.47 KB
/
Copy pathelectrobun.config.ts
File metadata and controls
65 lines (62 loc) · 1.47 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import type { ElectrobunConfig } from "electrobun/bun";
import pkg from "./package.json";
const RELEASE_BASE_URL = "https://github.com/vincelwt/gloomberb/releases/latest/download";
const GENERATE_RELEASE_PATCH = process.platform !== "win32";
const config: ElectrobunConfig = {
app: {
name: "Gloomberb",
identifier: "com.vincelwt.gloomberb",
version: pkg.version,
description: pkg.description,
urlSchemes: ["gloomberb"],
},
build: {
bun: {
entrypoint: "src/renderers/electrobun/bun/index.ts",
sourcemap: "external",
},
copy: {
"dist/electrobun-view": "views/mainview",
},
watch: [
"src",
"scripts/build-electrobun-view.ts",
"electrobun.config.ts",
"package.json",
],
watchIgnore: [
".git",
".git/**",
"dist/**",
"build/**",
"artifacts/**",
"node_modules/**",
],
mac: {
codesign: true,
createDmg: true,
notarize: true,
icons: "icon.iconset",
defaultRenderer: "native",
},
win: {
bundleCEF: true,
defaultRenderer: "cef",
icon: "src/assets/gloomberb-logo-windows.ico",
},
},
scripts: {
preBuild: "scripts/build-electrobun-view.ts",
postBuild: "scripts/install-electrobun-tui-shim.ts",
postWrap: "",
postPackage: "",
},
runtime: {
exitOnLastWindowClosed: true,
},
release: {
baseUrl: RELEASE_BASE_URL,
generatePatch: GENERATE_RELEASE_PATCH,
},
};
export default config;