-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
51 lines (51 loc) · 1.37 KB
/
Copy pathpackage.json
File metadata and controls
51 lines (51 loc) · 1.37 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
{
"name": "comclean",
"version": "1.1.0",
"description": "C盘一键清理工具 — 安全 · 快速 · 现代",
"main": "main.js",
"scripts": {
"start": "set ELECTRON_RUN_AS_NODE= && electron .",
"pack": "electron-builder --win nsis --config.extraMetadata.main=main.js",
"pack:dir": "electron-builder --win dir --config.extraMetadata.main=main.js",
"pack:portable": "electron-builder --win portable --config.extraMetadata.main=main.js",
"dist": "electron-builder --win nsis --config.extraMetadata.main=main.js",
"lint": "eslint . --ext .js",
"test": "node test/cleaner.test.js"
},
"build": {
"appId": "com.cleaner.comclean",
"productName": "ComClean",
"asar": true,
"compression": "maximum",
"directories": {
"output": "dist"
},
"files": [
"main.js",
"preload.js",
"backend/**/*",
"src/**/*",
"node_modules/**/*"
],
"win": {
"target": [
"nsis",
"portable"
]
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true,
"installerIcon": null,
"uninstallerIcon": null,
"installerHeaderIcon": null,
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"shortcutName": "ComClean"
}
},
"devDependencies": {
"electron": "^42.3.3",
"electron-builder": "^26.8.1"
}
}