Fix chmod

This commit is contained in:
Scott E. Graves
2019-04-07 00:08:24 -05:00
parent 8b11d59ba2
commit e647cf15d2

View File

@@ -517,15 +517,15 @@ ipcMain.on(Constants.IPC_Extract_Release, (event, data) => {
} catch (e) { } catch (e) {
} }
stream.close(); stream.close();
if (os.platform() !== 'win32') {
helpers.executeAndWait("chmod +x \"" + path.join(destination, 'repertory') + "\"");
}
standardIPCReply(event, Constants.IPC_Extract_Release_Complete, { standardIPCReply(event, Constants.IPC_Extract_Release_Complete, {
Source: data.Source, Source: data.Source,
}, error); }, error);
}) })
.on('finish', () => { .on('finish', () => {
stream.close(); stream.close();
if (os.platform() !== 'win32') {
helpers.executeAndWait("chmod +x \"" + path.join(destination, 'repertory') + "\"");
}
standardIPCReply(event, Constants.IPC_Extract_Release_Complete, { standardIPCReply(event, Constants.IPC_Extract_Release_Complete, {
Source: data.Source, Source: data.Source,
}); });