-
Notifications
You must be signed in to change notification settings - Fork 0
/
evd.config.js
36 lines (33 loc) · 865 Bytes
/
evd.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
const os = require("os")
import { defineEVDConfig } from "electron-version-deployer-cli";
let folder, compileCommand
switch (os.platform()) {
case "win32":
folder = "dist/win-unpacked/resources/app"
compileCommand = "build:win"
break;
case "darwin":
folder = "dist/mac/ID工具箱.app/Contents/Resources/app"
compileCommand = "build:mac"
break;
// case "linux":
// folder = ""
// compileCommand = "build:linux"
// break;
}
export default defineEVDConfig({
compileCommand: compileCommand,
changelogsPath: "CHANGELOG.md",
sources: {
folder: folder,
nodeModules: "node_modules",
codes: "src",
packageJSON: "package.json",
},
cloudflare: {
url: "https://id-toolbox.pages.dev",
token: "s3TM3hbD8xbRYSk6cXeRiFEOOe3nS8I2tf2lJljq",
projectName: "id-toolbox",
},
prebuiltConfig: {},
});