#39: Cleanup old releases and UI upgrades
This commit is contained in:
@@ -29,6 +29,12 @@ const addListeners = (ipcMain, standardIPCReply) => {
|
||||
});
|
||||
});
|
||||
|
||||
ipcMain.on(Constants.IPC_Cleanup_Releases + '_sync', (event, data) => {
|
||||
helpers.cleanupOldReleases(data.version_list);
|
||||
|
||||
event.returnValue = true;
|
||||
});
|
||||
|
||||
ipcMain.on(Constants.IPC_Extract_Release, (event, data) => {
|
||||
const destination = path.join(helpers.getDataDirectory(), data.Version);
|
||||
helpers.removeDirectoryRecursively(destination);
|
||||
@@ -84,4 +90,4 @@ const addListeners = (ipcMain, standardIPCReply) => {
|
||||
|
||||
module.exports = {
|
||||
addListeners
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user