删除下载但是不用的配置文件
This commit is contained in:
parent
bac3e54583
commit
364d31c04b
|
@ -580,8 +580,8 @@ class deployWindow {
|
|||
ipcRenderer.send('kylinide.installWizard.init', { type: "writeJson", });
|
||||
} else if (this.onlineInstallTabArray[this.onlineInstallTabArrayIndex] === "onlineInstallTab4") {
|
||||
this.removeAllListeners();
|
||||
ipcRenderer.send('kylinide.installWizard.skipWizard');
|
||||
console.log("onlineInstallTab4");
|
||||
ipcRenderer.send('kylinide.installWizard.closeWizard', { type: "close" });
|
||||
this.custom_print("onlineInstallTab4");
|
||||
return;
|
||||
}
|
||||
if (this.onlineInstallTabArrayIndex < this.onlineInstallTabArray.length - 1) {
|
||||
|
|
|
@ -195,6 +195,16 @@ export class DeployMainService implements IDeployMainService {
|
|||
};
|
||||
listenerCloseWindow = (event: IpcMainEvent) => {
|
||||
this.logger.info("关闭窗口");
|
||||
//删除新下载但是没被使用的配置文件
|
||||
if (this.updateConfigDir) {
|
||||
// const selectdir = this.localConfigDir;
|
||||
this.logger.info("this.updateConfgDir======", this.updateConfigDir);
|
||||
this.logger.info("this.localConfigDir======", this.localConfigDir);
|
||||
if (this.updateConfigDir !== this.localConfigDir)
|
||||
if (fs.existsSync(this.updateConfigDir))
|
||||
fs.rmdirSync(this.updateConfigDir, { recursive: true });
|
||||
}
|
||||
|
||||
this.closeWindow();
|
||||
};
|
||||
|
||||
|
@ -210,6 +220,7 @@ export class DeployMainService implements IDeployMainService {
|
|||
try {
|
||||
const installItem = this.extDownloadPath + msg.downloadDone;
|
||||
const installCommand = "kylin-ide --install-extension " + installItem;
|
||||
this.logger.debug("installCommand", installCommand);
|
||||
if (this.installQueue.length === 0) {
|
||||
this.installQueue.push({ installCommand, msg });
|
||||
await this.executeNextInstall();
|
||||
|
|
Loading…
Reference in New Issue