Repository navigation
🏁 refactor registry and PoSH out of squirrel-update - #11639
Conversation
|
Doh! A lint error landed in PR.... going to fix that shortly |
|
Now the last build on Travis, the packages one on Mac, fails ... but on a first look it does not seem related to current PR changes. Anyone taking some time to check this? |
|
@BrainCrumbz I'll try and take a look over the weekend. We want to be able to enable/disable shell integration from settings so this would definitely help! |
| callback?(error, stdout) | ||
| # This is necessary if using Powershell 2 on Windows 7 to get the events to raise | ||
| # http://stackoverflow.com/questions/9155289/calling-powershell-from-nodejs | ||
| spawnedProcess.stdin.end() |
There was a problem hiding this comment.
Would it be possible to use buffered-process for this? It already takes care of spawning commands and capturing output and it would seem redundant to have two. It doesn't yet do that PowerShell workaround but that could be something to add there.
There was a problem hiding this comment.
I just gave a first look at buffered-process now, of course there are similarities. Given that this PR is the first step in extracting things out of squirrel-update, and that it is propaedeutic to other long postponed changes, I'd say to split things first and then improve them further. For another pending PR we have, merging such refactoring on every codebase advance was a pita.
|
I tested this on Windows 10 and it gets my 👍 |
The first aim is to extract Windows Registry and PowerShell operations from squirrel-update: having those has dependencies, it is easier to mock them and thus squirell-update tests are simplified.
In perspective, this PR is functional to further changes addressing issue #5901. Here's why:
The need for such PR arose from another currently open one, #8780 , which combines together a refactoring and a feature improvement related to Windows right-click menu. If this current PR gets merged, then #8780 would be basically superseded, hence closed, and the actual feature improvement could be discussed and brought forward separately.
As things are now, the refactoring part in #8780 needs manual updates and conflict resolution everytime the codebase moves further in the squirrel-update area. By accepting this current PR, that would be set aside once for all.
HTH