Skip to content

Commit 6d4b7ac

Browse files
committed
Fixed OSX Updater
1 parent 5628162 commit 6d4b7ac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/updater.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ <h2 id="update-header" style="font-size:15px">Downloaded Successfully</h2>
162162
// if folder name was changed
163163
require('child_process').exec('gnome-terminal -x bash -c "echo \'Updating Powder Player\'; echo; tar -xvf \''+gui.App.dataPath+pathBreak+'updater'+appExt+'\' -C \''+linuxPath.slice(0, -2).join('/')+'\'; rm -rf \''+linuxPath.slice(0, -1).join('/')+'\'; mv \''+linuxPath.slice(0, -2).join('/')+'/PowderPlayer\' \''+linuxPath.slice(0, -1).join('/')+'\'; echo; echo \'Update Complete! Press any key to close ...\'; read" & disown');
164164
}
165+
} else if (process.platform == "darwin") {
166+
require('child_process').exec("open '"+gui.App.dataPath+pathBreak+'updater'+appExt+"'");
165167
} else {
166168
gui.Shell.openExternal(gui.App.dataPath+pathBreak+'updater'+appExt);
167169
}

0 commit comments

Comments
 (0)