Enable mac upgrade MVP#1284
Conversation
f9b5c54 to
92c624a
Compare
derrickstolee
left a comment
There was a problem hiding this comment.
I see that the only functional change is actually supporting upgrade and changing the messaging around upgrade launching separately or running inline. Feel free to ignore my style nit.
| get { return new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "GVFS.Mount", "git", "wish" }; } | ||
| } | ||
|
|
||
| public override bool SupportsInlineUpgrade { get; } = true; |
There was a problem hiding this comment.
I'm really not a fan of this notation. Can we replace the { get; } = true with => true; and still have it work with the override and virtual members?
There was a problem hiding this comment.
I don't feel strongly - but I updated to use the Expression body definition.
| UseShellExecute = true, | ||
| UseShellExecute = useShellExecute, | ||
| WorkingDirectory = Environment.SystemDirectory, | ||
| WindowStyle = ProcessWindowStyle.Normal, |
There was a problem hiding this comment.
is this trying to change window style of the parent process's window, when running inline?
There was a problem hiding this comment.
No - It does not want to change the parent process's window style... WindowStyle's default value is Normal.
| public MacPlatform() | ||
| public MacPlatform() : base( | ||
| underConstruction: new UnderConstructionFlags( | ||
| supportsGVFSUpgrade: true, |
| } | ||
|
|
||
|
|
||
| public override bool SupportsInlineUpgrade { get; } = false; |
There was a problem hiding this comment.
a few lines in comment would help document what an inline upgrade is.
There was a problem hiding this comment.
If you (or anyone) has a better term for this, please suggest it :)
There was a problem hiding this comment.
Maybe SupportsUpgradeWhileRunning that's the best I can come up with. Not sure how accurate that is either?
There was a problem hiding this comment.
I vote for SupportsInlineUpgrade. The context can be made clear with additional comments. Alternate name ideas -SupportsSingleWindowUpgrade?
There was a problem hiding this comment.
I tweaked the name and added comments to the base abstract property.
|
Testing notes
Log file - |
I ran into the first issue when I was helping Jameson test this. It seems like an easy enough mistake to make, should we fix it in a follow up PR? |
|
@alameenshah Thank you for trying this! The crash on the initial run as a regular issue is a known issue that I will fix. As you pointed out, it is because the regular user does not have permission to create this file. For the second issue, it looks (in part) like a configuration issue. But does bring up another question - how should we handle the GitHub upgrader on non-Windows platforms. |
|
One more testing note. After running |
92c624a to
214a173
Compare
Final changes to enable upgrade on Mac MVP. This includes: