Closed tomzx closed 7 years ago
We do dual code signing to support Windows 7. It the reason why you cannot sign on Windows 7 — sha2. I will check, I am sure that it worked before.
Works for me — app signed.
You can try my app https://bintray.com/develar/generic/onshape-desktop-shell/0.5.3#files — is it signed on your machine?
electron 1.1.3
Please try to update to 1.4
I tried your OnShape installer, results below.
I've also tried upgrading to electron 1.4.0, it made no difference. I've also bumped electron-builder to 7.4.0.
I'll add that I'm currently using Windows 7 SP1 (if that makes any difference).
I use AppVeyor CI to build Windows version — Windows Server 2012 R2 (x64)
. Ok — I will build on Windows 10 and check Windows 7 to confirm (or not to confirm) this issue.
Working for me.
"electron-builder": "7.6.0",
"electron-prebuilt": "1.4.1"
"target": "nsis"
Built on Win10 (signed sha1 & sha256), copied to USB then opened Win7 SP1, still signed (sha1 & sha256)
@dharders, I see you mention NSIS. In my case, I am building a Squirrel installer.
Ahh I see, missed that! I moved to NSIS as I found too many issues with Squirrel.Windows and soon it will be deprecated when NSIS auto-update lands. If it's possible with your project, I'd suggest to make the move too. But I understand it's a bit of work if you already have an app 'in the wild'.
@dharders Interesting, I thought that NSIS had been deprecated in favor of Squirrel a few versions back (about 3-6 months ago). Do you happen to know if that decision was reversed?
NSIS was only added in the last few months (still beta I guess until auto-update lands #529 ) with the intent to replace Squirrel.Windows.
@tomzx Squirrel.Windows maybe not 'deprecated' but no longer being default, where Windows.NSIS will be default soon (I remember reading it in some issue comments, I'll try find the link). @develar to confirm ?
Squirrel for Mac is still good though. It's just Squirrel.Windows that is troublesome/changing.
I see you mention NSIS. In my case, I am building a Squirrel installer.
Should be no difference (e.g. sample app is still using Squirrel.Windows).
I thought that NSIS had been deprecated in favor of Squirrel a few versions back (about 3-6 months ago)
Yes, but as Squirrel.Windows is not so robust/maintainable as NSIS, it will be deprecated and not a default windows target anymore.
Are there any good guide out there for code signing? I need to sign my NSIS app for both win 7 and 10 but i have no idea how to do that.
@virror should be very easy, please be aware of https://github.com/electron-userland/electron-builder/pull/774#issuecomment-249132045
Closed as obsolete.
Hi,
I've been successful in building a code signed Windows 10 application using electron-builder. However, if I run the same installer under Windows 7, I see the following dialog window:
If I look at the properties of the executable, the Digital Signatures tab is missing, indicating that the executable is not signed.
However, if I do the same process under Windows 7, I have a different set of issues. I'm unsure if it is my computer of the codesign executable that is part of the WinCodeSign 1.4.2 package, but it will often crash with
Unhandled rejection Error: Exit code: 3221225477
(see http://stackoverflow.com/a/10306977/108301, basically a segfault). If I run it multiple times (until it works), then I get a signed executable/installer. The security warning dialog box now displays the proper publisher name and the Digital Signatures is present in the properties of the executable.Does this imply that it is not possible to to have an app signed for both Windows 7 and Windows 10?
Reference logs (When building on Windows 7):