Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake: Windows codesigning refactor.
Quote variables containing the HOME or USERPROFILE, as they may have spaces. Check for both osslsigncode and signtool regardless of platform, and prefer osslsigncode. The reason for this being that osslsigncode is more reliable and does not depend on system configuration in any way, while signtool can fail under more conditions. The other reason being that you can use either program on both windows and linux. E.g. the mingw version of osslsigncode or the signtool from mono distributions on linux. Signed-off-by: Rafael Kitover <rkitover@gmail.com>
- Loading branch information
Showing
1 changed file
with
21 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6c64db0
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.
Minor issue with osslsigntool: You can't use it with any of those stupid "open source" certificates, like DigiCert, because those assholes require you to buy their fricking hardware token.