Upgrade improvements and refactor shutdown process #20

Closed
alexliebowitz wants to merge 7 commits from upgrades-2 into master

7 commits

Author SHA1 Message Date
Alex Liebowitz
7f58fe24d9 Add code to get process IDs for daemon on Windows 2017-03-24 03:06:54 -04:00
Alex Liebowitz
2351481dad Small bugfixes and typos 2017-03-24 03:04:30 -04:00
Alex Liebowitz
7534b1d30a Refactor shutdown process 2017-03-23 19:07:08 -04:00
Alex Liebowitz
fcc37afb2f Add Mac and Windows installer launching
Also starts a detached process so the window doesn't get held open
(many GUI apps launch the interface in a new process, so xdg-open
returns immediately, but it's not guaranteed).
2017-03-23 16:00:33 -04:00
Alex Liebowitz
a44597ac10 Minor style fixes and tweaks 2017-03-23 14:04:06 -04:00
Alex Liebowitz
68db32bf09 Light refactoring of upgrade process
- Use Node instead of lbrynet to get platform info
 - Factor out code that picks the download URI into its own function
 - Remove out-of-date code for checking old versions of MacOS
2017-03-22 07:22:57 -04:00
Alex Liebowitz
32635a4f35 Make upgrade process better at killing old daemons
- Manually call xdg-open instead of using shell.openItem(), which
   doesn't reliably work from the main process
 - If there's a connection error or timeout when asking the daemon
   to close, fall back on force killing
2017-03-22 07:22:48 -04:00