gm-plugkit 2.0.1468 → 2.0.1470
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/bootstrap.js +2 -12
- package/package.json +1 -1
package/bootstrap.js
CHANGED
|
@@ -329,14 +329,6 @@ async function extractNpmPackageWithRetry(destPath, version) {
|
|
|
329
329
|
}
|
|
330
330
|
|
|
331
331
|
|
|
332
|
-
function platformKey() {
|
|
333
|
-
const p = os.platform();
|
|
334
|
-
const a = os.arch();
|
|
335
|
-
if (p === 'win32') return a === 'arm64' ? 'win32-arm64' : 'win32-x64';
|
|
336
|
-
if (p === 'darwin') return a === 'arm64' ? 'darwin-arm64' : 'darwin-x64';
|
|
337
|
-
return (a === 'arm64' || a === 'aarch64') ? 'linux-arm64' : 'linux-x64';
|
|
338
|
-
}
|
|
339
|
-
|
|
340
332
|
function healIfShaMatches(binPath, expectedSha, sentinelPath, partialPath, kind) {
|
|
341
333
|
if (!fs.existsSync(binPath)) return false;
|
|
342
334
|
if (partialPath) { try { if (fs.existsSync(partialPath)) fs.unlinkSync(partialPath); } catch (_) {} }
|
|
@@ -428,10 +420,8 @@ function pruneOldVersions(root, keepVersion) {
|
|
|
428
420
|
try {
|
|
429
421
|
const entries = fs.readdirSync(root);
|
|
430
422
|
for (const e of entries) {
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
if (!isPlugkit && !isRtk) continue;
|
|
434
|
-
if (isPlugkit && e === `v${keepVersion}`) continue;
|
|
423
|
+
if (!e.startsWith('v')) continue;
|
|
424
|
+
if (e === `v${keepVersion}`) continue;
|
|
435
425
|
const dir = path.join(root, e);
|
|
436
426
|
const lock = path.join(dir, '.lock');
|
|
437
427
|
if (fs.existsSync(lock) && !isLockStale(lock)) continue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm-plugkit",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1470",
|
|
4
4
|
"description": "Bootstrap and daemon-spawn tool for gm plugkit binary. Downloads the correct platform binary, verifies SHA256, and starts the spool watcher daemon. Includes plugkit-wasm-wrapper for WASM-based spool watching.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|