diff --git a/README.md b/README.md index 9aadd12..579cb7f 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ### GUI for [Repertory](https://bitbucket.org/blockstorage/repertory) ### Repertory allows you to mount Sia, SiaPrime and/or Hyperspace blockchain storage solutions via FUSE on Linux/OS X or via WinFSP on Windows. # Downloads # -* [Repertory UI v1.0.2 OS X](https://pixeldrain.com/u/YmWYpQJY) +* [Repertory UI v1.0.2 OS X](https://pixeldrain.com/u/sEz57mDP) * [Repertory UI v1.0.2 Windows 64-bit](https://pixeldrain.com/u/4oJeVntd) # Supported Platforms # * OS X diff --git a/electron.js b/electron.js index 44bee2c..ed58920 100644 --- a/electron.js +++ b/electron.js @@ -517,18 +517,30 @@ 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(); - standardIPCReply(event, Constants.IPC_Extract_Release_Complete, { - Source: data.Source, - }); + if (os.platform() !== 'win32') { + helpers + .executeAndWait("chmod +x \"" + path.join(destination, 'repertory') + "\"") + .then(() => { + standardIPCReply(event, Constants.IPC_Extract_Release_Complete, { + Source: data.Source, + }); + }) + .catch(error => { + standardIPCReply(event, Constants.IPC_Extract_Release_Complete, { + Source: data.Source, + }, error); + }) + } else { + standardIPCReply(event, Constants.IPC_Extract_Release_Complete, { + Source: data.Source, + }); + } }); }); diff --git a/releases.json b/releases.json index 914fce3..243631d 100644 --- a/releases.json +++ b/releases.json @@ -9,7 +9,7 @@ "darwin": { "1.0.2": { "hash": "", - "urls": ["https://pixeldrain.com/api/file/YmWYpQJY"] + "urls": ["https://pixeldrain.com/api/file/sEz57mDP"] } } },