This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
44 lines (44 loc) · 2.41 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
{
"name": "mobalytics-repackager",
"version": "1.103.5",
"description": "Mobalytics tool for Linux",
"main": "src/extract.js",
"repository": "https://github.com/sekwah41/mobalinux",
"author": "Sekwah",
"license": "MIT",
"private": true,
"scripts": {
"extract": "node src/extract.js",
"patch-package": "cd app && rm -f ../moba-package-backup.json && cp package.json ../moba-package-backup.json && patch -i ../package.diff",
"yar": "cd app && diff -uaN ../moba-package-backup.json package.json > ../package.diff || true",
"postextract": "yarn patch-package && cd app && cp ../prepped-yarn.lock yarn.lock && yarn install --production && cp yarn.lock ../prepped-yarn.lock",
"dist": "electron-builder --config electron-builder/config.js",
"reset-and-build": "yarn new-gen-patches && yarn reset-and-apply-patch && yarn dist",
"postinstall": "yarn setup",
"create-patched-src": "rm -rf src/modified && rm -rf src/original && cp -R app/electron-src src/original && cp -R app/electron-src src/modified && node src/recursive-patch.js src/modified",
"generate-patches": "cd src && diff -raN -U 6 original modified > ../patch.diff || true",
"new-gen-patches": "node src/recursive-diff.js",
"new-apply-patch": "node src/recursive-patch.js app/electron-src",
"reset-and-apply-patch": "rm -rf app/electron-src && cp -R src/original app/electron-src && yarn new-apply-patch",
"apply-patch": "cd app/electron-src && patch -p1 -i ../../patch.diff",
"clean": "rm -rf app && rm -rf src/original && rm -rf src/modified && rm -rf build-resources && rm -rf dist",
"deep-clean": "yarn clean && rm -rf node_modules",
"test-build": "./dist/linux-unpacked/mobalytics-desktop",
"run-electron": "cd app && electron ./electron-src/moba-desktop/src/main.js",
"patch-and-run-electron": "yarn new-gen-patches && yarn reset-and-apply-patch && yarn run-electron",
"patch-and-run-standalone": "yarn new-gen-patches && yarn reset-and-apply-patch && yarn dist --linux dir && ./dist/linux-unpacked/mobalytics-desktop",
"setup": "yarn clean && yarn extract && yarn create-patched-src && yarn new-apply-patch && node src/fix_package.js"
},
"dependencies": {
"7zip-bin": "5.1.1",
"asar": "3.1.0",
"node-7z": "3.0.0",
"progress": "2.0.3",
"progress-download": "1.0.4",
"rimraf": "4.4.1"
},
"devDependencies": {
"electron": "23.2.0",
"electron-builder": "23.6.0"
}
}