-
Notifications
You must be signed in to change notification settings - Fork 19
Feature/v3.11.x/1115 osx executable args issue #109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/v3.11.x/1115 osx executable args issue #109
Conversation
|
No changelog update since it's a fix for feature that is currently being added. |
| string executablePath = Path.Combine(_app.LocalDirectory.Path, appVersion.MainExecutable); | ||
|
|
||
| if (File.Exists(executablePath)) | ||
| bool isOSXApp = platformType == PlatformType.OSX && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any chance that Platform.GetPlatformType returns OSX but the application isn't an OSX app?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, it's always the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The we shouldn't need all the other conditions, right?
...
executablePath.EndsWith(".app") &&
Directory.Exists(executablePath);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't checking whether application platform that secret we are using is OSX, but whether the appVersion.MainExecutable points to valid OSX .app.
| string executablePath = Path.Combine(_app.LocalDirectory.Path, appVersion.MainExecutable); | ||
|
|
||
| if (File.Exists(executablePath)) | ||
| bool isOSXApp = platformType == PlatformType.OSX && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The we shouldn't need all the other conditions, right?
...
executablePath.EndsWith(".app") &&
Directory.Exists(executablePath);
Checklist
Version.csup to date