-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathpackage.json
More file actions
149 lines (149 loc) · 5.1 KB
/
package.json
File metadata and controls
149 lines (149 loc) · 5.1 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
{
"name": "acbr-comic-book-reader",
"version": "3.22.0",
"description": "Comic book reader and converter for CBZ, CBR, CB7, EPUB, MOBI 7, FB2 and PDF files",
"main": "./src/core/main.js",
"author": "Álvaro García (www.binarynonsense.com)",
"license": "AGPL-3.0-or-later",
"repository": {
"type": "git",
"url": "https://github.com/binarynonsense/comic-book-reader"
},
"build": {
"productName": "ACBR Comic Book Reader",
"appId": "com.binarynonsense.acbr",
"electronLanguages": [
"en-US"
],
"files": [
"**/*",
"!src/assets/bin/**/*",
"!tools/**/*",
"!licenses/**/*",
"!.vscode/**/*",
"!docs/**/*",
"!.npmrc",
"!**/node_modules/@img/sharp-libvips-linux-arm64/**/*",
"!**/node_modules/@img/sharp-libvips-win32-ia32/**/*",
"!**/node_modules/@img/sharp-libvips-darwin-x64/**/*",
"!**/node_modules/*/{CHANGELOG.md,README.md,test,tests,examples,docs}",
"!**/*.{map,ts,md,txt}",
"!**/node_modules/.bin/**/*"
],
"win": {
"icon": "./src/assets/images/icon_256x256.png",
"extraResources": [
{
"from": "licenses",
"to": "licenses"
},
{
"from": "src/assets/bin/7zip/win",
"to": "bin/7zip/win"
},
{
"from": "src/assets/bin/mupdf/win",
"to": "bin/mupdf/win"
}
]
},
"linux": {
"category": "Graphics",
"icon": "./src/assets/images/icon_256x256.png",
"target": [
{
"target": "AppImage"
},
{
"target": "deb"
},
{
"target": "flatpak"
}
],
"artifactName": "${name}-${version}.${ext}",
"maintainer": "web@binarynonsense.com",
"extraResources": [
{
"from": "licenses",
"to": "licenses"
},
{
"from": "src/assets/bin/7zip/linux",
"to": "bin/7zip/linux"
},
{
"from": "src/assets/bin/mupdf/linux",
"to": "bin/mupdf/linux"
}
],
"asarUnpack": [
"**/node_modules/sharp/**",
"**/node_modules/@img/**/*"
]
},
"flatpak": {
"finishArgs": [
"--socket=x11",
"--share=ipc",
"--device=dri",
"--socket=pulseaudio",
"--filesystem=home",
"--share=network",
"--device=all",
"--filesystem=/run/udev:ro",
"--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons"
],
"license": "./licenses/acbr.txt",
"baseVersion": "25.08",
"runtimeVersion": "25.08"
}
},
"scripts": {
"start": "electron . --dev",
"start:safe": "systemd-run --user --scope -p MemoryMax=4G -p MemorySwapMax=0 electron . --dev --js-flags=\"--expose-gc\"",
"dist:linux": "npm run chmod-bins:linux && npm run build:linux && npm run extras:linux",
"dist:windows": "npm run build:windows && npm run extras:windows",
"dist:cross": "npm run dist:cross-windows && npm run dist:cross-linux",
"dist:cross-linux": "npm run sharp:linux && npm run dist:linux",
"dist:cross-windows": "npm run sharp:windows && npm run dist:windows",
"build:linux": "electron-builder --linux --publish never",
"build:windows": "electron-builder --win --dir --publish never",
"sharp:windows": "del-cli ./node_modules/sharp && npm install --platform=win32 --arch=x64 sharp",
"sharp:linux": "del-cli ./node_modules/sharp && npm install --platform=linux --arch=x64 sharp",
"chmod-bins:linux": "shx chmod +x node_modules/7zip-bin/linux/x64/7za && shx chmod +x src/assets/bin/7zip/linux/7zz && shx chmod +x src/assets/bin/mupdf/linux/mutool",
"extras:linux": "echo ${npm_package_version} > ./dist/linux-unpacked/VERSION && echo ${npm_package_version} > ./dist/VERSION",
"extras:windows": "echo %npm_package_version% > ./dist/win-unpacked/VERSION",
"licenses": "node ./tools/generate-licenses.js && npm run localization licenses",
"localization:update": "node ./tools/localization.js update all",
"localization:state": "node ./tools/localization.js state all",
"localization": "node ./tools/localization.js",
"translate": "node ./tools/translate.js",
"make-icons": "node ./tools/make-icons.js",
"check-patches": "node ./tools/check-patches.js",
"build:easy-brush": "mkdir -p src/assets/libs/easy-brush && npm install --no-save browserify easy-brush && npx browserify node_modules/easy-brush/dist/index.js --standalone EasyBrush -o src/assets/libs/easy-brush/easy-brush-browser.js && npm uninstall browserify easy-brush"
},
"devDependencies": {
"del-cli": "6.0.0",
"electron": "37.10.3",
"electron-builder": "26.7.0",
"shx": "0.4.0",
"snapsvg-cjs": "0.0.6"
},
"dependencies": {
"adm-zip": "0.5.16",
"custom-electron-titlebar": "4.2.8",
"epub": "1.3.0",
"fast-xml-parser": "5.3.4",
"jsdom": "27.4.0",
"jsqr": "1.4.0",
"music-metadata": "7.13.4",
"node-7z": "3.0.0",
"pdf-lib": "1.17.1",
"pdfkit": "0.17.2",
"qrcode": "1.5.4",
"sanitize-html": "2.17.0",
"sharp": "0.34.5",
"tesseract.js": "3.0.3"
}
}