-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathforge.config.js
48 lines (42 loc) · 1.15 KB
/
forge.config.js
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
// @ts-check
import path from "node:path";
import { MakerDMG } from "@electron-forge/maker-dmg";
import { MakerSquirrel } from "@electron-forge/maker-squirrel";
const getAppIcon = () => {
const iconExtension =
process.platform === "win32"
? "ico"
: process.platform === "darwin"
? "icns"
: "png";
return path.resolve(
import.meta.dirname,
`./resources/appicons/${iconExtension}/icon.${iconExtension}`,
);
};
/** @type {import("@electron-forge/shared-types").ForgeConfig} */
const config = {
packagerConfig: {
icon: getAppIcon(),
ignore: [
/^\/(src)|(tools)|(.github)|(.vscode)/,
/\/(.eslintrc.json)|(.gitignore)|(.gitattributes)|(electron.vite.config.ts)|(forge.config.cjs)|(tsconfig.json)|(bindl.config.js)|(bindl.config.js)|(README.md)$/,
],
// Prevents the app from showing up in the dock on macOS
extendInfo: {
LSUIElement: true,
},
},
rebuildConfig: {},
makers: [
new MakerSquirrel({
name: "clipboard_sync",
setupIcon: getAppIcon(),
iconUrl: getAppIcon(),
}),
new MakerDMG({
icon: getAppIcon(),
}),
],
};
export default config;