Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
109 lines (109 loc) · 4.3 KB
/
Copy pathpackage.json
File metadata and controls
109 lines (109 loc) · 4.3 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
{
"name": "acbr-comic-book-reader",
"version": "3.12.2",
"description": "Comic book reader and converter for CBZ, CBR, CB7, EPUB and PDF files",
"main": "./src/core/main.js",
"author": "Álvaro García (www.binarynonsense.com)",
"license": "BSD-2-Clause",
"repository": {
"type": "git",
"url": "https://github.com/binarynonsense/comic-book-reader"
},
"build": {
"productName": "ACBR Comic Book Reader",
"appId": "com.binarynonsense.acbr",
"win": {
"icon": "./src/assets/images/icon_256x256.png"
},
"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",
"asarUnpack": [
"**/node_modules/sharp/**",
"**/node_modules/@img/**/*",
"**/node_modules/7zip-bin/**"
]
},
"flatpak": {
"finishArgs": [
"--socket=x11",
"--share=ipc",
"--device=dri",
"--socket=pulseaudio",
"--filesystem=home",
"--share=network",
"--device=all",
"--filesystem=/run/udev:ro",
"--env=G_SLICE=always-malloc",
"--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons"
],
"license": "./licenses/acbr.txt",
"baseVersion": "24.08",
"runtimeVersion": "24.08"
}
},
"scripts": {
"start": "electron . --dev",
"start:glib": "export G_SLICE=always-malloc && electron . --dev",
"dist:linux": "npm run 7zbin: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",
"7zbin:linux": "shx chmod +x node_modules/7zip-bin/linux/x64/7za",
"extras:linux": "echo '#!/bin/bash\\nexport G_SLICE=always-malloc && ./acbr-comic-book-reader \"$@\"' > ./dist/linux-unpacked/ACBR.sh && shx chmod +x ./dist/linux-unpacked/ACBR.sh && echo '#!/bin/bash\\nexport G_SLICE=always-malloc && ./acbr-comic-book-reader.AppImage \"$@\"' > ./dist/ACBR.sh && shx chmod +x ./dist/ACBR.sh && echo '#!/bin/bash\\nexport G_SLICE=always-malloc && acbr-comic-book-reader \"$@\"' > ./dist/ACBR_deb.sh && shx chmod +x ./dist/ACBR_deb.sh && 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": "license-checker > licenses/node_modules.txt && shx sed -i 's/path.*node_modules/path: node_modules/' ./licenses/node_modules.txt && shx sed -i 's/licenseFile.*node_modules/licenseFile: node_modules/' ./licenses/node_modules.txt && 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"
},
"devDependencies": {
"del-cli": "^6.0.0",
"electron": "^37.2.6",
"electron-builder": "^26.0.12",
"license-checker": "^25.0.1",
"shx": "^0.4.0"
},
"dependencies": {
"7zip-bin": "^5.2.0",
"adm-zip": "^0.5.16",
"axios": "^1.11.0",
"changedpi": "^1.0.4",
"custom-electron-titlebar": "^4.2.8",
"epub": "^1.3.0",
"epubjs": "0.3.93",
"fast-xml-parser": "^5.2.5",
"file-type": "14.7.1",
"iso-639-1": "^3.1.5",
"jsdom": "^26.1.0",
"jsqr": "^1.4.0",
"minimist": "^1.2.8",
"music-metadata": "7.13.4",
"node-7z": "^3.0.0",
"node-unrar-js": "^2.0.2",
"pdf-lib": "^1.17.1",
"pdfkit": "^0.17.1",
"qrcode": "^1.5.4",
"sanitize-html": "^2.17.0",
"sharp": "^0.33.5",
"tesseract.js": "^3.0.3"
}
}