-
Notifications
You must be signed in to change notification settings - Fork 783
Expand file tree
/
Copy pathpackage.json
More file actions
170 lines (170 loc) · 5.25 KB
/
Copy pathpackage.json
File metadata and controls
170 lines (170 loc) · 5.25 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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
{
"name": "Pinokio",
"private": true,
"version": "8.0.40",
"homepage": "https://pinokio.co",
"description": "pinokio",
"main": "main.js",
"email": "cocktailpeanuts@proton.me",
"author": "https://twitter.com/cocktailpeanut",
"scripts": {
"start": "electron .",
"diagnose:user-agent": "electron script/run-user-agent-diagnostic.js",
"test:user-agent": "node script/run-user-agent-test.js",
"test:update-banner": "node script/run-update-banner-test.js",
"pack": "./node_modules/.bin/electron-builder --dir",
"eject": "hdiutil info | grep '/dev/disk' | awk '{print $1}' | xargs -I {} hdiutil detach {}",
"l": "docker run --rm -ti -v $PWD:/project -w /project -e SNAPCRAFT_BUILD_ENVIRONMENT=host -e SNAP_DESTRUCTIVE_MODE=true electronuserland/builder bash -lc 'rm -rf node_modules && npm install && npm run monkeypatch && ./node_modules/.bin/electron-builder install-app-deps && ./node_modules/.bin/electron-builder -l'",
"mw": "rm -rf node_modules && npm install && npm run monkeypatch && ./node_modules/.bin/electron-builder install-app-deps && ./node_modules/.bin/electron-builder -mw && npm run zip",
"build2": "npm run l && npm run mw",
"dist": "npm run monkeypatch && ./node_modules/.bin/electron-builder install-app-deps && export SNAPCRAFT_BUILD_ENVIRONMENT=host && export SNAP_DESTRUCTIVE_MODE='true' && ./node_modules/.bin/electron-builder -l && npm run zip",
"dist2": "npm run monkeypatch && export USE_SYSTEM_FPM=true && ./node_modules/.bin/electron-builder install-app-deps && export SNAPCRAFT_BUILD_ENVIRONMENT=host && export SNAP_DESTRUCTIVE_MODE='true' && ./node_modules/.bin/electron-builder -mwl && npm run zip",
"zip": "node script/zip",
"monkeypatch": "cp temp/yarn.js node_modules/app-builder-lib/out/util/yarn.js && cp temp/rebuild.js node_modules/@electron/rebuild/lib/src/rebuild.js",
"postinstall2": "npm run monkeypatch && ./node_modules/.bin/electron-builder install-app-deps",
"fix": "brew install fpm"
},
"build": {
"appId": "computer.pinokio",
"afterPack": "after-pack.js",
"afterSign": "electron-builder-notarize",
"directories": {
"output": "dist-${platform}"
},
"publish": [
{
"provider": "github",
"owner": "pinokiocomputer",
"repo": "pinokio"
}
],
"asarUnpack": [
"node_modules/go-get-folder-size/**/*",
"node_modules/7zip-bin/**/*",
"node_modules/sweetalert2/**/*",
"node_modules/@homebridge/**/*",
"node_modules/koffi/**/*",
"node_modules/@koromix/koffi-*/**/*",
"node_modules/pinokiod/server/public/**/*",
"node_modules/pinokiod/server/scripts/**/*",
"node_modules/pinokiod/system/**/*",
"node_modules/pinokiod/node_modules/koffi/**/*",
"node_modules/pinokiod/node_modules/@koromix/koffi-*/**/*",
"node_modules/toasted-notifier/vendor/mac.noindex/**/*"
],
"nsis": {
"include": "build/installer.nsh"
},
"extraResources": [
"./script/**",
{
"from": "assets/icon_small.png",
"to": "assets/icon_small.png"
}
],
"protocols": [
{
"name": "pinokio",
"schemes": [
"pinokio"
]
}
],
"mac": {
"category": "utility",
"target": [
{
"target": "default",
"arch": [
"x64",
"arm64"
]
}
],
"hardenedRuntime": true,
"entitlements": "build/entitlements.mac.plist",
"entitlementsInherit": "build/entitlements.mac.inherit.plist",
"extendInfo": {
"NSMicrophoneUsageDescription": "Pinokio needs microphone access for apps that use audio.",
"NSCameraUsageDescription": "Pinokio needs camera access for apps that use video."
}
},
"dmg": {
"backgroundColor": "#ffffff",
"icon": null,
"window": {
"width": 520,
"height": 320
},
"iconSize": 120,
"contents": [
{
"type": "file",
"x": 160,
"y": 170
},
{
"type": "link",
"name": "Applications",
"path": "/Applications",
"x": 360,
"y": 170
}
]
},
"linux": {
"maintainer": "Cocktail Peanut <cocktailpeanuts@proton.me>",
"target": [
{
"target": "deb",
"arch": [
"x64",
"arm64"
]
},
{
"target": "rpm",
"arch": [
"x64",
"arm64"
]
},
{
"target": "AppImage",
"arch": [
"x64",
"arm64"
]
}
]
},
"win": {
"artifactName": "Pinokio.${ext}",
"signtoolOptions": {
"sign": "./build/sign.js"
},
"target": [
{
"target": "nsis",
"arch": [
"x64"
]
}
]
}
},
"license": "MIT",
"dependencies": {
"electron-progressbar": "^2.2.1",
"electron-store": "^8.1.0",
"electron-updater": "^6.6.2",
"electron-window-state": "^5.0.3",
"pinokiod": "^8.0.40"
},
"devDependencies": {
"@electron/rebuild": "3.2.10",
"electron": "39.2.3",
"electron-builder": "26.2.0",
"electron-builder-notarize": "^1.5.2"
}
}