rubyinno-setupocra

How can I sign an application packaged by OCRA and Inno Setup?


I am using the following command to have OCRA build an installer using Inno Setup:

ocra bin/rails . --output fvc.exe 
                 --add-all-core 
                 --gemfile Gemfile 
                 --no-dep-run 
                 --gem-full 
                 --chdir-first 
                 --no-lzma 
                 --innosetup fvc.iss 
                 -- runner -e production fvc.rb

I would like to sign the installer package, which can be done in Inno Setup's script editor, or on the command line. This is probably as simple as getting some arguments to the compiler, but I can't find documentation about how to do that through OCRA.


Solution

  • The sign tool has indeed be defined in Inno Setup IDE or on iscc.exe command-line.

    OCRA does not allow customization of iscc.exe command-line.

    If you cannot define the sign tool in IDE (e.g. because the build script has to be standalone), you have to cheat a bit: