Skip to content

Instantly share code, notes, and snippets.

@dleidert
Last active May 25, 2021 06:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dleidert/c354aeb543b1c0d24cfb04476b486a29 to your computer and use it in GitHub Desktop.
Save dleidert/c354aeb543b1c0d24cfb04476b486a29 to your computer and use it in GitHub Desktop.
Build a NSIS-based installer on Windows using travis-ci.org

I've recently found a way to test build a NSIS-based installer project on a Windows host on https://travis-ci.org. I had to figure out quite a bit how to run the makensis command there and how to set the PATH environment variable. But now that it works, let me share my configuration file .travis.yml with you:

language: shell
sudo: false

notifications:
  email:
    on_success: never

matrix:
  fast_finish: true
  include:
  - os: linux
    dist: xenial
    addons:
      apt:
        update: true
        packages: nsis
    install: true
    script: makensis -V3 myScript.nsi
  - os: windows
    filter_secrets: false
    env: PATH="/c/Program Files (x86)/NSIS/:/c/Program Files/NSIS/:$PATH"
    install: choco install nsis -y
    script: makensis -V3 myScript.nsi
@avancinirodrigo
Copy link

Hi,
Thank you for sharing.
I was stuck with that.
It doesn't need to add NSIS in PATH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment