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