kingkont 0.7.7 → 0.7.8
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/main.js +4 -1
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -419,7 +419,10 @@ ipcMain.handle('updates:check', async () => {
|
|
|
419
419
|
ipcMain.handle('updates:install', async (e, target = 'latest') => {
|
|
420
420
|
return new Promise((resolve, reject) => {
|
|
421
421
|
const shell = process.env.SHELL || '/bin/bash';
|
|
422
|
-
|
|
422
|
+
// --prefer-online принуждает npm рефрешить metadata из registry, минуя
|
|
423
|
+
// локальный stale-cache (иначе ETARGET для свежеопубликованных версий —
|
|
424
|
+
// npm packument.json кэшируется на 5-10 минут).
|
|
425
|
+
const cmd = `npm i -g --prefer-online kingkont@${target}`;
|
|
423
426
|
const proc = spawn(shell, ['-lc', cmd]);
|
|
424
427
|
let stderr = '';
|
|
425
428
|
proc.stdout.on('data', d => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kingkont",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.8",
|
|
4
4
|
"description": "KingKont \u00b7 Chatium \u2014 \u043d\u043e\u0434-\u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0441\u0446\u0435\u043d \u0441 AI-\u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0435\u0439 (\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438/\u0432\u0438\u0434\u0435\u043e/\u0433\u043e\u043b\u043e\u0441/SFX/\u043c\u0443\u0437\u044b\u043a\u0430/\u0442\u0435\u043a\u0441\u0442)",
|
|
5
5
|
"main": "main.js",
|
|
6
6
|
"bin": {
|