#36: Add ability to select Linux distribution type if OS is unsupported

This commit is contained in:
2019-08-28 21:20:30 -05:00
parent 0105602a44
commit 083b2192d7
5 changed files with 44 additions and 5 deletions

View File

@@ -584,6 +584,7 @@ ipcMain.on(Constants.IPC_Download_File, (event, data) => {
ipcMain.on(Constants.IPC_Extract_Release, (event, data) => {
const destination = path.join(helpers.getDataDirectory(), data.Version);
helpers.removeDirectoryRecursively(destination);
helpers.mkDirByPathSync(destination);
const stream = fs.createReadStream(data.Source);
@@ -968,6 +969,17 @@ ipcMain.on(Constants.IPC_Show_Window + '_sync', event => {
event.returnValue = true;
});
ipcMain.on(Constants.IPC_Test_Release, (event, data) => {
helpers
.testRepertoryBinary(data.Version)
.then(() => {
standardIPCReply(event, Constants.IPC_Test_Release_Reply, {});
})
.catch(error => {
standardIPCReply(event, Constants.IPC_Test_Release_Reply, {}, error);
});
});
ipcMain.on(Constants.IPC_Unmount_All_Drives, (event, data) => {
unmountAllDrives();
standardIPCReply(event, Constants.IPC_Unmount_All_Drives_Reply);