|
1 | 1 | {
|
2 |
| - "name": "mydicebot-190616", |
| 2 | + "name": "mydicebot-190625", |
3 | 3 | "version": "0.0.1",
|
4 | 4 | "description": "My Dice Bot",
|
5 |
| - "main": "index.js", |
| 5 | + "homepage": "https://mydicebot.com", |
| 6 | + "author": "MyDiceBot <mydicebot.com@gmail.com>", |
| 7 | + "main": "main.js", |
6 | 8 | "pkg": {
|
7 | 9 | "assets": [
|
8 | 10 | "views/**/*",
|
|
36 | 38 | "cookie-parser": "^1.3.3",
|
37 | 39 | "execa": "^1.0.0",
|
38 | 40 | "express": "^4.16.2",
|
| 41 | + "express-session": "^1.16.1", |
39 | 42 | "formidable": "^1.2.1",
|
40 | 43 | "graphql-request": "^1.8.2",
|
41 | 44 | "isomorphic-fetch": "^2.2.1",
|
42 | 45 | "kdbxweb": "https://github.com/keeweb/kdbxweb.git",
|
43 | 46 | "morgan": "^1.5.1",
|
44 | 47 | "opn": "^5.4.0",
|
| 48 | + "pkg": "^4.3.7", |
45 | 49 | "pug": "^2.0.3",
|
46 | 50 | "request": "^2.88.0",
|
47 |
| - "pkg": "^4.3.7", |
48 | 51 | "steem": "^0.7.1"
|
49 | 52 | },
|
50 | 53 | "devDependencies": {
|
|
58 | 61 | "body-parser": "^1.10.2",
|
59 | 62 | "config": "^1.28.1",
|
60 | 63 | "cookie-parser": "^1.3.3",
|
| 64 | + "electron-builder": "^20.43.0", |
61 | 65 | "express": "^4.16.2",
|
62 | 66 | "express-session": "^1.16.1",
|
63 |
| - "kdbxweb": "https://github.com/keeweb/kdbxweb.git", |
64 | 67 | "isomorphic-fetch": "^2.2.1",
|
| 68 | + "kdbxweb": "https://github.com/keeweb/kdbxweb.git", |
65 | 69 | "morgan": "^1.5.1",
|
66 | 70 | "pkg": "^4.3.7",
|
67 | 71 | "pug": "^2.0.3"
|
68 | 72 | },
|
| 73 | + "build": { |
| 74 | + "productName":"mydicebot", |
| 75 | + "appId": "com.app.mydicebot", |
| 76 | + "directories": { |
| 77 | + "output": "build" |
| 78 | + }, |
| 79 | + "files":[ |
| 80 | + "**/*", |
| 81 | + "!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme}", |
| 82 | + "!**/node_modules/*/{test,__tests__,tests,powered-test,example,examples}", |
| 83 | + "!**/node_modules/*.d.ts", |
| 84 | + "!**/node_modules/.bin", |
| 85 | + "!**/*.{iml,o,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,xproj}", |
| 86 | + "!.editorconfig", |
| 87 | + "!/build", |
| 88 | + "!**/._*", |
| 89 | + "!*.sh", |
| 90 | + "!**/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,.gitignore,.gitattributes}", |
| 91 | + "!**/{__pycache__,thumbs.db,.flowconfig,.idea,.vs,.nyc_output}", |
| 92 | + "!**/{appveyor.yml,.travis.yml,circle.yml}", |
| 93 | + "!**/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json}" |
| 94 | + ], |
| 95 | + "extraResources":[ |
| 96 | + { |
| 97 | + "from": "script", |
| 98 | + "to": "../script", |
| 99 | + "filter": ["**/*"] |
| 100 | + }, |
| 101 | + { |
| 102 | + "from": "keepass", |
| 103 | + "to": "../keepass", |
| 104 | + "filter": ["**/*"] |
| 105 | + } |
| 106 | + ], |
| 107 | + "dmg": { |
| 108 | + "contents": [ |
| 109 | + { |
| 110 | + "x": 410, |
| 111 | + "y": 150, |
| 112 | + "type": "link", |
| 113 | + "path": "/Applications" |
| 114 | + }, |
| 115 | + { |
| 116 | + "x": 130, |
| 117 | + "y": 150, |
| 118 | + "type": "file" |
| 119 | + } |
| 120 | + ] |
| 121 | + }, |
| 122 | + "mac": { |
| 123 | + "icon": "build/icons/icon_mac.png" |
| 124 | + }, |
| 125 | + "win": { |
| 126 | + "icon": "build/icons/icon.ico", |
| 127 | + "target": [ |
| 128 | + { |
| 129 | + "target": "nsis", |
| 130 | + "arch": [ |
| 131 | + "x64", |
| 132 | + "ia32" |
| 133 | + ] |
| 134 | + } |
| 135 | + ] |
| 136 | + }, |
| 137 | + "linux": { |
| 138 | + "icon": "build/icons/icon.png", |
| 139 | + "category":"game", |
| 140 | + "target": [ |
| 141 | + "AppImage", |
| 142 | + "deb", |
| 143 | + "rpm" |
| 144 | + ] |
| 145 | + } |
| 146 | + }, |
69 | 147 | "scripts": {
|
70 | 148 | "test": "node test.js",
|
71 | 149 | "dev": "pm2-dev pm2.json",
|
72 |
| - "start": "pm2-docker pm2.json" |
| 150 | + "start": "pm2-docker pm2.json", |
| 151 | + "electron-packager-linux": "./build/node_modules/.bin/electron-packager . --overwrite --platform=linux --arch=x64 --out=build --ignore=build/ --ignore=test/ --ignore=.git/ --ignore=.sh --app-version=0.0.1 --electron-version=$(./build/node_modules/.bin/electron -v | cut -c 2-)", |
| 152 | + "electron-packager-darwin": "./build/node_modules/.bin/electron-packager . --overwrite --platform=darwin --arch=x64 --out=build --ignore=.git/ --ignore=build/ --ignore=test/ --ignore=.sh --app-version=0.0.1 --electron-version=$(./build/node_modules/.bin/electron -v | cut -c 2-)", |
| 153 | + "electron-packager-win32": "./build/node_modules/.bin/electron-packager . --overwrite --platform=win32 --arch=x64 --out=build --ignore=.git/ --ignore=build/ --ignore=test/ --ignore=.sh --app-version=0.0.1 --electron-version=$(./build/node_modules/.bin/electron -v | cut -c 2-)", |
| 154 | + "electron-zip-darwin": "cd build/*-darwin-x64 && zip -yDr ../electron-express-darwin-x64.zip .", |
| 155 | + "electron-zip-win32": "cd build/*-win32-x64 && zip -yDr ../electron-express-win32-x64.zip .", |
| 156 | + "electron-zip-linux": "cd build/*-linux-x64 && zip -yDr ../electron-express-linux-x64.zip .", |
| 157 | + "pack": "electron-builder --dir", |
| 158 | + "dist": "electron-builder --linux --ia32 --x64 --armv7l --arm64", |
| 159 | + "win-dist": "electron-builder --win", |
| 160 | + "mac-dist": "electron-builder --mac" |
73 | 161 | },
|
74 |
| - "author": "mydicebot", |
75 | 162 | "license": "MIT"
|
76 | 163 | }
|
0 commit comments