fix: 修复应用还没有安装完,按钮就重新变成可安装状态 (#11)

fix:先用比较简单的方案解决安装之后卸载了还是显示已安装的问题

fix: 在安装成功的ipc信息之后再删除安装队列的任务

删除pnpm workspace
This commit is contained in:
Delta1035
2026-02-04 13:06:01 +08:00
committed by GitHub
parent 53eb307f5c
commit b43c6117ec
6 changed files with 138 additions and 24 deletions

View File

@@ -4,7 +4,7 @@ import readline from 'node:readline';
import { promisify } from 'node:util';
import pino from 'pino';
import { InstalledAppInfo } from '../../typedefinition';
import { ChannelPayload, InstalledAppInfo } from '../../typedefinition';
const logger = pino({ 'name': 'install-manager' });
@@ -333,7 +333,7 @@ ipcMain.on('remove-installed', async (_event, pkgname: string) => {
time: Date.now(),
exitCode: code,
message: JSON.stringify(messageJSONObj)
});
} satisfies ChannelPayload);
});
});

View File

@@ -4,4 +4,11 @@ export interface InstalledAppInfo {
arch: string;
flags: string;
raw: string;
}
}
export type ChannelPayload = {
success: boolean;
message: string;
[k: string]: unknown;
};