mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 01:10:16 +08:00
feat: 添加卸载确认模态框,支持卸载进度显示
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user