Prepare signing

Collected some infos regarding signing
a windows build.
This commit is contained in:
Martin Dosch 2020-05-03 01:01:30 +02:00
parent 3ffec591a9
commit 9779abe701
2 changed files with 21 additions and 1 deletions

View file

@ -7,8 +7,17 @@ To create the Dino windows installer you need this:
* Dino compiled for windows in input directory
* logo.ico in input directory
* Download https://dino.im/img/logo.svg
* Convert it to ico (e.g. `onvert -background transparent -define 'icon:auto-resize=16,24,32,64' logo.svg logo.ico` (requires imagemagick)
* Convert it to ico (e.g. `convert -background transparent -define 'icon:auto-resize=16,24,32,64' logo.svg logo.ico` (requires imagemagick)
## Create installer
Simply run `makensis dino.nsi`
## ToDo
* Create a [good looking MUI Installer](https://nsis.sourceforge.io/Docs/Modern%20UI/Readme.html)
* Sign the installer
* Requires to [buy a certificate](https://comodosslstore.com/resources/free-code-signing-certificate/)
* Maybe there can be a [free one for open source programs](https://www.codenotary.io/with-codenotary-you-never-have-to-pay-for-code-signing-certificates-again/) - Not yet read thoroughly whether there is a catch.
* https://stackoverflow.com/questions/9527160/sign-nsis-installer-on-linux-box
* https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Signing_an_executable_with_Authenticode

11
windows-installer/sign.sh Normal file
View file

@ -0,0 +1,11 @@
#! /bin/bash
signcode \
-spc TODO.spc \
-v TODO.pvk \
-a sha1 -$ commercial \
-n Dino \
-i https://dino.im/ \
-t http://timestamp.verisign.com/scripts/timstamp.dll \
-tr 10 \
dino-installer.exe