forked from SwapyNetwork/electron-metamask-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
91 lines (91 loc) · 3.05 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
{
"name": "electron-metamask-boilerplate",
"productName": "Electron Metamask Boilerplate",
"version": "0.0.1",
"description": "Easily create a desktop version of your dApp using Electron (Muon) + MetaMask.",
"main": "main.js",
"license": "Apache-2.0",
"author": {
"name": "Swapy Network",
"email": "[email protected]"
},
"keywords": [
"muon",
"electron",
"metamask",
"dapp",
"ethereum",
"decentralized",
"desktop",
"app"
],
"bugs": {
"url": "https://github.com/SwapyNetwork/electron-metamask-boilerplate/issues"
},
"homepage": "https://github.com/SwapyNetwork/electron-metamask-boilerplate#readme",
"scripts": {
"start": "node setup.js",
"pack": "electron-builder --dir",
"dist": "electron-builder",
"copy.metamask.prod": "cp -R extensions your-app/dist && cp extensions.js your-app/dist && cp main.js your-app/dist",
"download.metamask.dev": "mkdir -p extensions && rm -rf extensions/* && cd extensions && ced nkbihfbeogaeaoehlefnkodbefgpgknn && mv nkbihfbeogaeaoehlefnkodbefgpgknn metamask",
"download.metamask.prod": "mkdir -p your-app/dist/extensions && rm -rf your-app/dist/extensions/* && cd your-app/dist/extensions && ced nkbihfbeogaeaoehlefnkodbefgpgknn && mv nkbihfbeogaeaoehlefnkodbefgpgknn metamask",
"build": "npm run download.metamask.prod && npm run copy.metamask.prod && yarn dist",
"build.linux": "npm run download.metamask.prod && npm run copy.metamask.prod && yarn dist -l",
"build.win": "npm run download.metamask.prod && npm run copy.metamask.prod && yarn dist -w",
"build.mac": "npm run download.metamask.prod && npm run copy.metamask.prod && yarn dist -m",
"build.all": "npm run download.metamask.prod && npm run copy.metamask.prod && yarn dist -wlm",
"postinstall": "npm i --save-dev brave/electron-prebuilt"
},
"repository": {
"type": "git",
"url": "git+https://github.com/SwapyNetwork/electron-metamask-boilerplate.git"
},
"build": {
"appId": "electron-metamask-boilerplate",
"productName": "Electron Metamask Boilerplate",
"muonVersion": "4.7.1",
"files": [
"dist/**/*",
"node_modules/**/*"
],
"asar": true,
"asarUnpack": [
"dist/extensions/"
],
"directories": {
"buildResources": "app/dist/assets/icons",
"output": "dist",
"app": "your-app"
},
"nodeGypRebuild": false,
"linux": {
"target": [
"deb",
"AppImage"
],
"icon": "your-app/dist/assets/icons",
"category": "Office"
},
"mac": {
"category": "public.app-category.finance",
"target": "tar.gz",
"icon": "your-app/dist/assets/icons/swapy-exchange"
},
"win": {
"target": "nsis",
"icon": "your-app/dist/assets/icons/swapy-exchange.ico"
}
},
"devDependencies": {
"chrome-ext-downloader": "^1.0.3",
"electron-builder": "^19.52.1",
"electron-is-dev": "^0.3.0",
"electron-prebuilt": "github:brave/electron-prebuilt",
"electron-reload": "^1.2.2",
"yarn": "^1.3.2"
},
"dependencies": {
"qs": "^6.5.1"
}
}