@boxes-dev/dvb 1.0.578 → 1.0.579
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/dist/bin/dvb-update.cjs
CHANGED
|
@@ -3057,11 +3057,17 @@ var resolveManifestUrl = () => {
|
|
|
3057
3057
|
return DEFAULT_MANIFEST_URL;
|
|
3058
3058
|
};
|
|
3059
3059
|
var isStandaloneMode = () => {
|
|
3060
|
-
const versionJsonPath = import_node_path11.default.join(
|
|
3060
|
+
const versionJsonPath = import_node_path11.default.join(
|
|
3061
|
+
import_node_path11.default.dirname(process.execPath),
|
|
3062
|
+
"version.json"
|
|
3063
|
+
);
|
|
3061
3064
|
return (0, import_node_fs7.existsSync)(versionJsonPath);
|
|
3062
3065
|
};
|
|
3063
3066
|
var readLocalVersionMeta = () => {
|
|
3064
|
-
const versionJsonPath = import_node_path11.default.join(
|
|
3067
|
+
const versionJsonPath = import_node_path11.default.join(
|
|
3068
|
+
import_node_path11.default.dirname(process.execPath),
|
|
3069
|
+
"version.json"
|
|
3070
|
+
);
|
|
3065
3071
|
if (!(0, import_node_fs7.existsSync)(versionJsonPath)) return null;
|
|
3066
3072
|
try {
|
|
3067
3073
|
return JSON.parse((0, import_node_fs7.readFileSync)(versionJsonPath, "utf-8"));
|
|
@@ -3212,7 +3218,10 @@ var pruneOldVersions = async (standaloneDir, currentVersion, platformKey) => {
|
|
|
3212
3218
|
).map((e) => e.name).sort().reverse();
|
|
3213
3219
|
const toRemove = versionDirs.slice(2);
|
|
3214
3220
|
for (const dir of toRemove) {
|
|
3215
|
-
await import_promises2.default.rm(import_node_path11.default.join(standaloneDir, dir), {
|
|
3221
|
+
await import_promises2.default.rm(import_node_path11.default.join(standaloneDir, dir), {
|
|
3222
|
+
recursive: true,
|
|
3223
|
+
force: true
|
|
3224
|
+
});
|
|
3216
3225
|
}
|
|
3217
3226
|
} catch {
|
|
3218
3227
|
}
|