Menu

#557 make nsis available in github actions

3.0 Series
open
nobody
None
5
2020-10-24
2020-04-11
No

Hello there,

I'm working on a PyQt5 project on github and want to use fbs to create an installer via github-actions. fbs is using nsis for creating windows installers so i need to have it installed in the windows-latest image. I have searched a while but couldn't find a quick solution to this. So my feature request is to provide an easy way to install nsis in a github-actions image. My first idea was to create a chocolatey package, cause installing these is already possible. But I'm also happy with any other solution. Thanks in advance!

Aron

Discussion

  • idleberg

    idleberg - 2020-04-11

    I don't see what keeps your from using NSIS in GitHub Actions today:

    name: NSIS
    
    on: [ push ]
    
    jobs:
      build:
        runs-on: ubuntu-latest
        steps:
        - name: Install NSIS
          run: |
            sudo apt-get -y update
            sudo apt-get -y install nsis
        - name: Print NSIS version
          run: makensis -VERSION
    
     
  • Aron Schmidt

    Aron Schmidt - 2020-04-11

    Thanks for the answer. My problem is I want have to install it with runs-on: windows-latest. This is due to fbs uses pyinstaller which can only create executables for the OS it runs on.

     

    Last edit: Aron Schmidt 2020-04-11
  • idleberg

    idleberg - 2020-04-11

    The same thing is possible using windows-latest:

    name: NSIS
    
    on: [ push ]
    
    jobs:
      build:
        runs-on: windows-latest
        steps:
        - name: Install NSIS
          run: |
            Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
            scoop bucket add extras
            scoop install nsis
        - name: Print NSIS version
          run: makensis -VERSION
    

    I'm using scoop as package manager, but the same should be possible using Chocolatey. Maybe your real feature request is about providing officially maintained versions of NSIS for package managers?

     

    Last edit: idleberg 2020-04-11
  • Aron Schmidt

    Aron Schmidt - 2020-04-11

    Thanks man, I didn't know about scoop and couldn't find a chocolatey package. If that works I'm perfectly happy. Officially maintained packages would be nice though. And a hint how to use a package manager to install nsis on the Download page.

     
  • Aron Schmidt

    Aron Schmidt - 2020-04-11

    Okay, don't know why but today I can find nsis in chocolatey packages. Yesterday I got 0 result. Thanks anyway.

     
  • idleberg

    idleberg - 2020-04-11

    In the meantime, I've created a repository of NSIS templates for GitHub Actions

    https://github.com/NSIS-Dev/github-actions

     
  • idleberg

    idleberg - 2020-10-24
     

Log in to post a comment.