Hacking:Building: Difference between revisions
Content deleted Content added
Marked this version for translation |
No edit summary |
||
Line 92:
==== Requirements for version 0.5.x and later ====
Install Inno Setup 5 '''unicode''' from the [http://www.jrsoftware.org/isdl.php download page].
==== Code signing ====
'''Note'''. This option is available only for Inno Setup.
In some cases you may want to create a [https://en.wikipedia.org/wiki/Code_signing signed installer]. For this you should:
* Buy a certificate.
* Export it to Windows.
* Install Microsoft signtool.exe.
* Set path to the binary in the PATH variable.
* Configure InnoSetup.
# Open the file /dist/win/inno/valentina.iss with Inno Setup Compiler.
# Select ''Tools'' > ''Configure Sign Tools''.
# Select Add button.
# Enter ''Name of the Sign Tool'' ('''MySign''').
# Enter an associated Command (signtool.exe sign /v /a /n $qSeamly, LLC$q /t <nowiki>http://timestamp.comodoca.com/authenticode</nowiki> /d $qPatternmaking program$q $f).
# Uncomment string '''SignTool=MySign'''
* Done.
'''SignTool.exe options'''<br />
/v - Displays verbose output regardless of whether the command runs successfully or fails, and displays warning messages.<br />
/a - Automatically selects the best signing certificate. Sign Tool will find all valid certificates that satisfy all specified conditions and select the one that is valid for the longest time. If this option is not present, Sign Tool expects to find only one valid signing certificate.<br />
/n ''SubjectName'' - Specifies the name of the subject of the signing certificate. This value can be a substring of the entire subject name.<br />
/t ''URL'' - Specifies the URL of the time stamp server. If this option (or /tr) is not present, the signed file will not be time stamped. A warning is generated if time stamping fails. This option cannot be used with the /tr option.<br />
/d - Desc specifies a description of the signed content.<br />
'''InnoSetup Constants'''<br />
$q is an Inno Setup constant representing a quote.<br />
$f is a constant containing the name and path of the setup EXE created by Inno Setup.<br />
==== Building ==== <!--T:52-->
|