From e647cf15d2baaef2c43cafe86cf4635884115cfb Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Sun, 7 Apr 2019 00:08:24 -0500 Subject: [PATCH 1/3] Fix chmod --- electron.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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, }); From 73fc72acb7f8a07ea9de5f147f059bc3ffd11517 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Sun, 7 Apr 2019 00:11:26 -0500 Subject: [PATCH 2/3] Wait for chmod completion --- electron.js | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/electron.js b/electron.js index 81f221c..ed58920 100644 --- a/electron.js +++ b/electron.js @@ -524,11 +524,23 @@ ipcMain.on(Constants.IPC_Extract_Release, (event, data) => { .on('finish', () => { stream.close(); if (os.platform() !== 'win32') { - helpers.executeAndWait("chmod +x \"" + path.join(destination, 'repertory') + "\""); + 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, + }); } - standardIPCReply(event, Constants.IPC_Extract_Release_Complete, { - Source: data.Source, - }); }); }); From 519bd71d8e8645a31a6c952a7a52eaa26b7883ff Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Sun, 7 Apr 2019 00:18:50 -0500 Subject: [PATCH 3/3] Fix locations --- README.md | 2 +- releases.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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/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"] } } },