Hello, I have used Syncthing for Windows for a long time,Now,I want to modify the picture in the software(png/svg).But the cmd waring codesign: signing failed,like this:
go run build.go zip
Codesign: signing failed:
syncthing-windows-386-v1.11.1.zip
Does anyone happen to know how to solve this problem?
You need signtool.exe from Visual Studio, a code signing certificate in a format understood by signtool, and setting the environment variables mentioned here:
You can see the signtool documentation for details on the options.
Just for the record, there is no need to sign if you want to just compile and use a binary on your own.
Singing is needed for automatic updates though, at least as far as I understand. I have actually been thinking of singing my own binaries, mainly because I would like to be able to auto-update the binary on my Android devices.
I have this forum thread saved:
https://forum.syncthing.net/t/windows-binary-signing/7720. It seems to be the only source talking about creating singed binaries under Windows. I myself have only gone so far as creating the certificate though.
When you run build.go zip you get a zip file, like you asked for. You can ignore the warning about code signing. I’m not going to guide you through signtool.
Yes,when I run build.go zip ,I can get one syncthing.exe and one syncthing-windows-386-v1.11.1.zip.
I changed this folder img on source code(syncthing\gui\default\assets\img),But when I run the syncthing.exe ,this images displayed on the browser have not changed。
Thanks for all the suggestions, I have solved this problem. Maybe my environment variable is abnormal. I used another computer, and now after running the program, the picture displayed on the browser is my modified one.