diff --git a/electron.js b/electron.js index 44bee2c..81f221c 100644 --- a/electron.js +++ b/electron.js @@ -517,15 +517,15 @@ ipcMain.on(Constants.IPC_Extract_Release, (event, data) => { } catch (e) { } stream.close(); - if (os.platform() !== 'win32') { - helpers.executeAndWait("chmod +x \"" + path.join(destination, 'repertory') + "\""); - } standardIPCReply(event, Constants.IPC_Extract_Release_Complete, { Source: data.Source, }, error); }) .on('finish', () => { stream.close(); + if (os.platform() !== 'win32') { + helpers.executeAndWait("chmod +x \"" + path.join(destination, 'repertory') + "\""); + } standardIPCReply(event, Constants.IPC_Extract_Release_Complete, { Source: data.Source, });