Describe the bug
Windows code signing fails on the electronuserland/builder:wine image due to improper curl version. I believe it is related to this issue, and could be fixed by upgrading electron-builder to v22.4.0 or above. When trying to build you get the following output:
/usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by /root/.cache/electron-builder/winCodeSign/winCodeSign-2.5.0/linux/osslsigncode)
To Reproduce
Steps to reproduce the behavior:
vue-cli-service electron-build -w on the electronuserland/builder:wine docker imageExpected behavior
The expected behavior is for the command to successfully sign and build a windows installer.
Environment (please complete the following information):
electronuserland/builder:wine docker imageHow to build electron app for multiple platform such as for linux and windows or all three platforms
Looks like the upcoming beta will be upgrading electron-builder to v22.x.x. In the meantime, I did find a workaround for this. Just need to remove libcurl4 and install libcurl3 and libcurl-openssl1.0-dev on the builder:wine image before attempting to build and sign the executable.
- apt-get update
- apt-get remove libcurl4 -y
- apt-get install libcurl3 libcurl-openssl1.0-dev -y
You can either use the 2.0 beta version, or you can use yarn resolutions:
(package.json)
{
"resolutions": {
"vue-cli-plugin-electron-builder/electron-builder": "^22.2.0"
}
}
v22.x of electron builder works fine with 1.x of the plugin, but since it has breaking changes I can't make upgrade it unless I make a major update to the plugin to keep semver compatibility.
Most helpful comment
You can either use the 2.0 beta version, or you can use yarn resolutions:
(
package.json)v22.x of electron builder works fine with 1.x of the plugin, but since it has breaking changes I can't make upgrade it unless I make a major update to the plugin to keep semver compatibility.