Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📦 Build installer with Inno setup #3086

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

AnotherFoxGuy
Copy link
Member

Updated the CPack config to use Inno setup instead of wix, so now CPack will produce a useable installer

Now you can also build multiple versions of the installer:

  • Online - Build a fully online installer (The installer will be 2MB, and requires an internet connection to download the game + contentpack)
  • Offline - Build installer without contentpack (Will create a ~125MB installer)
  • Bundled - Build installer with contentpack bundled (Creates a massive 2.5GB installer consisting of multiple files)

This replaces https://github.com/AnotherFoxGuy/ror-installer

@ohlidalp
Copy link
Member

I tried with CMakeGui: 1. Select installer type "Offline" 2. Click "Configure". The contentpack download completed but hash didn't match.

  -- verifying file...

         file='C:/Users/Petr/builds/rigs-of-rods/_deps/cp_heavyequipment-subbuild/cp_heavyequipment-populate-prefix/src/archive.tar'

  -- MD5 hash of

      C:/Users/Petr/builds/rigs-of-rods/_deps/cp_heavyequipment-subbuild/cp_heavyequipment-populate-prefix/src/archive.tar
    does not match expected value
      expected: 'ef25dc781ad148359cbcec7a67281747'
        actual: '49a6edcce914f3d5fd57204342091c62'
  -- Hash mismatch, removing...

  CMake Error at C:/Users/Petr/builds/rigs-of-rods/_deps/cp_heavyequipment-subbuild/cp_heavyequipment-populate-prefix/src/cp_heavyequipment-populate-stamp/download-cp_heavyequipment-populate.cmake:170 (message):

    Each download failed!

cmakegui-installertypeOffline.zip

Possible values:
Off       - Do not build installer
Online    - Build fully online installer
Offline   - build installer without contentpack
Bundled   - build installer with contentpack bundled
Copy link
Member

@ohlidalp ohlidalp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The MD5 hashes are liable to get out of date easy - we need a more flexible solution: https://discord.com/channels/136544456244461568/189904947649708032/1321938559577624628

I tested with the hashes removed and it works OK: https://github.com/ohlidalp/rigs-of-rods/tree/inno-setup_nohash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants