-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
99 lines (99 loc) · 2.71 KB
/
package.json
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"name": "weread-pc",
"version": "1.0.0",
"description": "",
"main": "./dist/main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"compile": "rm -rf build && rm -rf dist && webpack --config webpack.config.js",
"prestart": "npm run compile",
"start": "electron .",
"electron:dev": "electron . dev",
"clean": "rm -rf build && rm -rf dist",
"postinstall": "electron-builder install-app-deps",
"pack:win": "rm -rf build && rm -rf dist && webpack --config webpack.config.js && electron-builder --win --x64",
"pack:mac": "rm -rf build && rm -rf dist && webpack --config webpack.config.js && electron-builder --mac --x64",
"pack:linux": "rm -rf build && rm -rf dist && webpack --config webpack.config.js && electron-builder --linux --x64",
"pack:all": "rm -rf build && rm -rf dist && webpack --config webpack.config.js && electron-builder --platform=all"
},
"electronDownload": {
"mirror": "https://npm.taobao.org/mirrors/electron/"
},
"build": {
"appId": "com.birdlearn.weread.pc",
"productName": "weread-pc",
"directories": {
"output": "build",
"buildResources": "build"
},
"files": [
"public/*.html",
"public",
"*.js",
"res",
"dist",
"node_modules",
"package.json",
"package-lock.json"
],
"asar": true,
"extraResources": [
{
"from": "./extraResources/",
"to": "extraResources"
}
],
"publish": [
{
"provider": "generic",
"url": "http://weread-pc.birdlearn.com/download"
}
],
"mac": {
"target": [
"dmg"
],
"icon": "./icons/weread.icns"
},
"win": {
"target": [
"nsis"
],
"icon": "./public/weread.ico"
},
"nsis": {
"oneClick": false,
"perMachine": true,
"allowElevation": true,
"allowToChangeInstallationDirectory": true,
"createDesktopShortcut": true,
"runAfterFinish": true,
"installerIcon": "./public/weread.ico",
"uninstallerIcon": "./public/weread.ico",
"installerHeaderIcon": "./public/weread.ico"
}
},
"author": "jiazhu@yeah.net",
"license": "ISC",
"devDependencies": {
"antd": "^4.16.13",
"css-loader": "^6.5.0",
"electron": "^15.3.0",
"electron-builder": "^22.13.1",
"file-loader": "^6.2.0",
"sass": "^1.43.4",
"sass-loader": "^12.3.0",
"source-map-loader": "^3.0.0",
"style-loader": "^3.3.1",
"ts-loader": "^9.2.6",
"typescript": "^4.4.4",
"webpack": "^5.61.0",
"webpack-cli": "^4.9.1"
},
"dependencies": {
"@types/react": "^17.0.33",
"@types/react-dom": "^17.0.10",
"react": "^17.0.2",
"react-dom": "^17.0.2"
}
}