Closed olivereisenhut closed 1 month ago
@olivereisenhut was this working on a previous alpha release of electron-builder? Trying to discern where the issue is coming from and git diff it.
I guess not:
${appName}-${appVersion}-win.zip
correctly, but fails on files with space #8600${appName}-${appVersion}-win.zip
correctly, but fails on files with space #8600${appName}-${appVersion}-win.zip
correctly, but fails on files with space #8600We're currently using a different signing method and trying to migrate to Azure Trusted Signing, so we've never had it in a working state.
Out of curiosity, @MikeJerred have you run into this issue yet? I'm not sure how PR https://github.com/electron-userland/electron-builder/pull/8606 would cause this to appear as it only changes the Files
path, no logic in the publisher was changed.
Out of curiosity, @MikeJerred have you run into this issue yet? I'm not sure how PR #8606 would cause this to appear as it only changes the
Files
path, no logic in the publisher was changed.
I have not yet tried to publish so didn't run into this (yet)
@olivereisenhut does this issue occur for you when using certificates with signtool? (Even if self-signed cert) Trying to discern if there was a change in the publisher logic versus just the signing file path PR. I don't see this issue occurring in CI tests for signtool, but the CI tests are unable to cover the azure implementation
Ahh right, good point. I built with the latest alpha (26.0.0-alpha.3) and signtool and the same thing happens. Building with the latest stable (25.1.8) works as expected.
I'll try building with the previous alpha versions to narrow it down further.
Alright, I built all the alpha version with signtool, here are the results: 26.0.0-alpha.0 -> works 26.0.0-alpha.1 -> works 26.0.0-alpha.2 -> works 26.0.0-alpha.3 -> adds the path as prefix
I think I have found the problem. I created a PR for it. #8631 After applying this PR, the files will upload correctly.
Wow, very nice find! Merging now, will get it released asap
Released in v26.0.0-alpha.4
@olivereisenhut do you happen to have a production azure-trusted-signed exe you could send me (or download via GH releases)? I'd like to see if I can implement signature verification for the auto-update flow, or determine if azure trusted signing even can support that flow.
Hey,
We're going to test our current build on Monday.
Though, I quickly checked our app-update.yml
, which still contains the publisher name.
We kept the publisherName
in our build config by accident.
Perfect, thanks for confirming the workaround. Auto-updates should function as expected with publisherName in the build config
I think we experiencing a side-effect of #8600.
Our bundle folder (
\dist
) looks somewhat like this:Before applying the latest alpha (
26.0.0-alpha.3
) the only file that was uploaded was${appName}-${appVersion}-win.zip
. Now, after applying26.0.0-alpha.3
, all the files with spaces in them are uploaded correctly, although the ones that don't have spaces have the absolute path prefixed in the filename.We now have the following files uploaded to Github:
Builder output from our CI, this is why I now it's the absolute path: