forked from ohmplatform/FreedomGPT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforge.config.ts
53 lines (50 loc) · 1.52 KB
/
forge.config.ts
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
import MakerDMG from "@electron-forge/maker-dmg";
import MakerSquirrel from "@electron-forge/maker-squirrel";
import MakerZIP from "@electron-forge/maker-zip";
import type { ForgeConfig } from "@electron-forge/shared-types";
import * as dotenv from "dotenv";
dotenv.config();
const config: ForgeConfig = {
packagerConfig: {
icon:
process.platform === "win32"
? "./src/appicons/icons/win/icon.ico"
: "./src/appicons/icons/mac/ico",
extraResource: "./models",
osxSign: {
identity: "Developer ID Application: Age of AI, LLC (TS4W464GMN)",
optionsForFile: () => {
return {
entitlements: "./macbuild/entitlements.mac.plist",
};
},
},
osxNotarize: {
tool: "notarytool",
appleId: process.env.APPLE_ID as string,
appleIdPassword: process.env.APPLE_ID_PASSWORD as string,
teamId: "TS4W464GMN",
},
ignore: [/^\/llama\.cpp/, /^\/docker-app/, /^\/\.env/],
},
buildIdentifier: process.env.IS_BETA ? "beta" : "prod",
rebuildConfig: {},
makers: [
new MakerZIP({}, ["darwin"]),
new MakerDMG({}, ["darwin"]),
new MakerSquirrel(
{
name: "FreedomGPT",
setupIcon: "./src/appicons/icons/win/icon.ico",
certificateFile: process.env["WINDOWS_PFX_FILE"],
certificatePassword: process.env["WINDOWS_PFX_PASSWORD"],
owners: "Age of AI, LLC",
authors: "Age of AI, LLC",
copyright: "Age of AI, LLC",
},
["win32"]
),
],
plugins: [],
};
export default config;