-
Notifications
You must be signed in to change notification settings - Fork 9
Add Nuget nupkg signing #11
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
base: master
Are you sure you want to change the base?
Conversation
Daniel15
left a comment
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.
Looks good, thanks! Just some minor comments inline.
| if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) | ||
| { | ||
| await RunProcessAsync( | ||
| "mono", |
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 Mono really needed here? Could it use .NET Core instead?
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.
Unfortunately, it doesn't work in .NET Core yet. NuGet/NuGet.Client#2545
| $"-CertificatePath \"{CommandLineEncoder.Utils.EncodeArgText(certFile)}\"", | ||
| $"-CertificatePassword \"{CommandLineEncoder.Utils.EncodeArgText(certPassword)}\"", | ||
| $"-Timestamper {_pathConfig.Timestamper}", | ||
| $"\"{CommandLineEncoder.Utils.EncodeArgText(inputFile)}\"", |
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.
These arguments are all identical across both - Can you please remove the duplication (eg. pull them out into a separate array)?
This adds .nupkg signing via
nuget signto Authenticode signing. nuget.exe needs to be installed on not-windows and path set to it. (Nuget still requires mono on other platforms.)I also made the timestamp service a configurable.