mirakurun 3.8.0 → 3.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/bin/postinstall.js +7 -8
- package/package.json +1 -2
package/CHANGELOG.md
CHANGED
package/bin/postinstall.js
CHANGED
|
@@ -23,14 +23,13 @@ const fs = require("fs");
|
|
|
23
23
|
const path = require("path");
|
|
24
24
|
const child_process = require("child_process");
|
|
25
25
|
const semver = require("semver");
|
|
26
|
-
const colors = require("colors");
|
|
27
26
|
const pkg = require("../package.json");
|
|
28
27
|
|
|
29
28
|
// node check
|
|
30
29
|
if (semver.satisfies(process.version, pkg.engines.node) === true) {
|
|
31
|
-
console.log("Version:", `node@${process.version}
|
|
30
|
+
console.log("Version:", `node@${process.version}`, "[OK]");
|
|
32
31
|
} else {
|
|
33
|
-
console.error("Version:", `node@${process.version}
|
|
32
|
+
console.error("Version:", `node@${process.version}`, "[NG]", "Expected:", pkg.engines.node);
|
|
34
33
|
process.exit(1);
|
|
35
34
|
}
|
|
36
35
|
|
|
@@ -57,9 +56,9 @@ if (process.platform === "linux" || process.platform === "darwin") {
|
|
|
57
56
|
const pm2Version = child_process.execSync("pm2 -v", { encoding: "utf8" }).trim();
|
|
58
57
|
const pm2Expected = ">=2.4.0";
|
|
59
58
|
if (semver.satisfies(pm2Version, pm2Expected) === true) {
|
|
60
|
-
console.log("Version:", `pm2@${pm2Version}
|
|
59
|
+
console.log("Version:", `pm2@${pm2Version}`, "[OK]");
|
|
61
60
|
} else {
|
|
62
|
-
console.error("Version:", `pm2@${pm2Version}
|
|
61
|
+
console.error("Version:", `pm2@${pm2Version}`, "[NG]", "Expected:", pm2Expected);
|
|
63
62
|
process.exit(1);
|
|
64
63
|
}
|
|
65
64
|
|
|
@@ -72,7 +71,7 @@ if (process.platform === "linux" || process.platform === "darwin") {
|
|
|
72
71
|
]
|
|
73
72
|
});
|
|
74
73
|
} catch (e) {
|
|
75
|
-
console.log("Caution: `pm2 startup` has failed. you can try fix yourself."
|
|
74
|
+
console.log("Caution: `pm2 startup` has failed. you can try fix yourself.");
|
|
76
75
|
}
|
|
77
76
|
|
|
78
77
|
child_process.execSync("pm2 start processes.json", {
|
|
@@ -95,9 +94,9 @@ if (process.platform === "linux" || process.platform === "darwin") {
|
|
|
95
94
|
const winserVersion = child_process.execSync("winser -v", { encoding: "utf8" }).replace(/^[a-z]+ /, "").trim();
|
|
96
95
|
const winserExpected = ">=1.0.3 <2.0.0";
|
|
97
96
|
if (semver.satisfies(winserVersion, winserExpected) === true) {
|
|
98
|
-
console.log("Version:", `winser@${winserVersion}
|
|
97
|
+
console.log("Version:", `winser@${winserVersion}`, "[OK]");
|
|
99
98
|
} else {
|
|
100
|
-
console.error("Version:", `winser@${winserVersion}
|
|
99
|
+
console.error("Version:", `winser@${winserVersion}`, "[NG]", "Expected:", winserExpected);
|
|
101
100
|
process.exit(1);
|
|
102
101
|
}
|
|
103
102
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "mirakurun",
|
|
3
3
|
"preferGlobal": true,
|
|
4
4
|
"description": "Japanese DTV Tuner Server Service.",
|
|
5
|
-
"version": "3.8.
|
|
5
|
+
"version": "3.8.1",
|
|
6
6
|
"homepage": "https://github.com/Chinachu/Mirakurun",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"mirakurun",
|
|
@@ -60,7 +60,6 @@
|
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@fluentui/react": "8.27.0",
|
|
62
62
|
"aribts": "^1.3.5",
|
|
63
|
-
"colors": "^1.4.0",
|
|
64
63
|
"cors": "^2.8.5",
|
|
65
64
|
"dotenv": "^8.6.0",
|
|
66
65
|
"eventemitter3": "^4.0.7",
|