rnp icon indicating copy to clipboard operation
rnp copied to clipboard

Create Windows installer for RNP via CI

Open ronaldtse opened this issue 4 years ago • 8 comments

From @antonsviridenko:

I think we can build installer binary, maybe using NSIS, and it will install files into C:\Program Files\rnp\ or some other place, like it is traditionally done on Windows.

e.g. https://github.com/marketplace/actions/makensis

Originally posted by @ronaldtse in https://github.com/rnpgp/rnp/issues/1387#issuecomment-776495597

ronaldtse avatar Feb 10 '21 07:02 ronaldtse

@maxirmx could you please help with this? Thanks!

ronaldtse avatar Nov 01 '21 05:11 ronaldtse

@ronaldtse I believe some clarification is required

  1. Native or mingw or two installers ?
  2. Installer normally have some prelude. At least a screen saying "Hello, thank you for choosing, please read and accept license agreement" ... I need at least some general guidance.
  3. What do we want to install ? Application ? SDK (library, headers, samples, link to the docs, ...)? Both ?

maxirmx avatar Nov 07 '21 21:11 maxirmx

@maxirmx

  1. What would you recommend?
  2. Yes, we will be able to provide that initial paragraph.
  3. We want to install the CLI tools and the library/headers. For documentation they can find on our website at rnpgp.org.

ronaldtse avatar Nov 08 '21 01:11 ronaldtse

@ronaldtse I would do native, if it was my choice. However, I know that I adhere to extreme position that is not shared by everyone.

maxirmx avatar Nov 08 '21 15:11 maxirmx

Installer normally have some prelude. At least a screen saying "Hello, thank you for choosing, please read and accept license agreement" ... I need at least some general guidance.

@maxirmx

I think that most suitable Windows installer building tool is NSIS, as already mentioned. It provides welcome screen, license text dialogs and so on. You only need to write NSIS script and call nsis compiler.

antonsviridenko avatar Nov 09 '21 12:11 antonsviridenko

@antonsviridenko Thank you I am asking about text/design of welcome screen and license itself. I do not think that NSIS already has these texts for RNP

maxirmx avatar Nov 09 '21 19:11 maxirmx

ref https://github.com/rnpgp/rnp/issues/1402

maxirmx avatar Nov 09 '21 19:11 maxirmx

In any case we need to provide an MSI or MSX file so that managed installs can happen on Windows.

The text could be: "Welcome to the RNP installer. You will be guided through the steps necessary to install RNP, including its command-line tool and its software libraries."

The license should be taken from the LICENSE file we have at repo root.

ronaldtse avatar Nov 10 '21 08:11 ronaldtse