feat: 添加卸载确认模态框,支持卸载进度显示

This commit is contained in:
Elysia
2026-01-31 00:01:32 +08:00
parent 9d92bac6cc
commit b9325db8b0
3 changed files with 215 additions and 19 deletions

View File

@@ -301,7 +301,15 @@ ipcMain.on('remove-installed', async (_event, pkgname: string) => {
let output = '';
child.stdout.on('data', (data) => {
output += data.toString();
const chunk = data.toString();
output += chunk;
webContents.send('remove-progress', chunk);
});
child.stderr.on('data', (data) => {
const chunk = data.toString();
output += chunk;
webContents.send('remove-progress', chunk);
});
child.on('close', (code) => {