-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Azure Trusted Signing fails when there are spaces in the file path #8600
Comments
I think this should be easy to solve by wrapping the file path arg in quotes:
const params = {
FileDigest: "SHA256",
...extraSigningArgs, // allows overriding FileDigest if provided in config
Endpoint: endpoint,
CertificateProfileName: certificateProfileName,
CodeSigningAccountName: codeSigningAccountName,
- Files: options.path,
+ Files: `"${options.path}"`,
} I would open a PR but I am finding the setup to get this project running locally impossible. |
Nice catch! I was unfortunately not able to set up unit tests for the Invoke-TrustedSigning stage of the logic due to not having an azure signing account and their unavailability of being free to opensource projects. Happy to help get your dev environment setup running though! Here are the generic instructions for getting up n' running for localized testing in your test project: https://github.com/electron-userland/electron-builder/blob/master/CONTRIBUTING.md#to-setup-a-local-dev-environment |
To kickstart you with a test via patch-package, this is the patch on top of the
|
Ah good point, I tested now by modifying the .js file directly within node_modules/app-builder-lib and it is working correctly with that fix :) In terms of project setup, I was able to run It is a shame that Azure doesn't provide a free account for open source projects, it does make it tricky to test! |
That's odd indeed! I've been developing off of master quite a bit recently and all CI tests have been passing as well https://github.com/electron-userland/electron-builder/commits/master/ Glad to hear that it works with that fix! I'll get a PR set up today and into the next release. Will post back when it's deployed |
Released in v26.0.0-alpha.3! Note, the alpha version also migrates to electron/asar and integrates electron/fuses (electron-builder config object |
If the path to be signed has spaces in it, the powershell command interprets multiple args.
Example of the error when trying to sign
foo bar.exe
:The text was updated successfully, but these errors were encountered: