Code Monkey home page Code Monkey logo

makensis-action's Introduction

Nullsoft scriptable install system GitHub action

This action calls makensis to create a Windows installer.

This codebase was ported from the Azure DevOps Extension dev-maxima/nsis-extension.

Platforms

This action looks for makensis or makensis.exe in the environment path, and if not found it will attempt to look in a couple of different places:

  • Windows - C:\Program Files (x86)\NSIS\
  • Linux and macOS:
    • /usr/local/bin/
    • /usr/bin/
    • /opt/local/bin/

Inputs

script-file

Path to the .nsi script file. Default "install.nsi".

arguments

Arguments to makensis.exe. Default: "".

additional-plugin-paths

Newline-delimited list of paths to load plugins from. Default "".

Example usage

- name: Create installer
  uses: joncloud/[email protected]
  with:
    arguments: "/V3"

Development

This action needs to be built from the source code located in the /src folder. Whenever you make changes, you should run the npm run build script. Otherwise, your changes won't be tested by CI.

Sample Projects

makensis-action's People

Contributors

dependabot[bot] avatar dimo414 avatar idleberg avatar joncloud avatar kg9ov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

makensis-action's Issues

Restore just-include argument

I use NSIS in a project that I'm currently migrating to GH Actions from Travis. It uses NSIS to build installers, and is invoked from a batch script. In other words, I don't want or need an action that runs makensis, only one that installs it. This is possible with v1 of your action, with just-include set to true. This option is not available in v2 however. For my use case it's basically crucial. Please consider reinstating it, thanks.

limitation to windows?!

Can you please explain, what do you mean with

Due to the requirement of NSIS, this is only compatible on Windows.

for example, i build all my nsis based setups on macOS with makensis
also nsis is available in Ubuntu

currently, i moved everything to github actions and this action was the only one which provide makensis.
But, i don't understand the limitation to windows?!

Cannot get to work with EnVar Plugin

Hi there,

I'm trying to get this to work with https://nsis.sourceforge.io/EnVar_plug-in.

The closest I seem to get is:

    - name: Download EnVar plugin for NSIS
      uses: carlosperate/[email protected]
      with:
        file-url: https://nsis.sourceforge.io/mediawiki/images/7/7f/EnVar_plugin.zip
        file-name: envar_plugin.zip
        location: ${{ github.workspace }}
    - name: Extract EnVar plugin
      run: 7z x -o"${{ github.workspace }}/NSIS_Plugins" "${{ github.workspace }}/envar_plugin.zip"
    - name: Create installer
      uses: joncloud/[email protected]
      with:
        include-more-plugins: true
        include-custom-plugins-path: ${{ github.workspace }}/NSIS_Plugins/Plugins
        script-file: ${{ github.workspace }}/installer/windows/microk8s.nsi

However, it seems the plugin does not pick this up:

2020-05-20T22:34:53.9043926Z ##[group]Run joncloud/[email protected]
2020-05-20T22:34:53.9044263Z with:
2020-05-20T22:34:53.9044426Z   include-more-plugins: true
2020-05-20T22:34:53.9044541Z   include-custom-plugins-path: d:\a\microk8s\microk8s/NSIS_Plugins/Plugins
2020-05-20T22:34:53.9044663Z   script-file: d:\a\microk8s\microk8s/installer/windows/microk8s.nsi
2020-05-20T22:34:53.9044762Z   just-include: false
2020-05-20T22:34:53.9044866Z env:
2020-05-20T22:34:53.9044980Z   pythonLocation: C:\hostedtoolcache\windows\Python\3.8.3\x64
2020-05-20T22:34:53.9046198Z ##[endgroup]
2020-05-20T22:34:53.9689545Z {
2020-05-20T22:34:53.9690011Z   scriptFile: 'd:\\a\\microk8s\\microk8s/installer/windows/microk8s.nsi',
2020-05-20T22:34:53.9690264Z   justInclude: false,
2020-05-20T22:34:53.9690467Z   includeMorePlugins: true,
2020-05-20T22:34:53.9690675Z   arguments: '',
2020-05-20T22:34:53.9690851Z   includeCustomPluginsPath: ''
2020-05-20T22:34:53.9691039Z }
2020-05-20T22:34:53.9699167Z Running 7z x "-od:\a\_actions\joncloud\makensis-action\v1.1\.nsis" "d:\a\_actions\joncloud\makensis-action\v1.1\nsis\nsis.zip"
2020-05-20T22:34:54.2639643Z includeMorePlugins
2020-05-20T22:34:54.2640521Z copyDirectory d:\a\_actions\joncloud\makensis-action\v1.1\nsis\plugins d:\a\_actions\joncloud\makensis-action\v1.1\.nsis\nsis-3.03\plugins\x86-ansi
2020-05-20T22:34:54.2640806Z copying d:\a\_actions\joncloud\makensis-action\v1.1\nsis\plugins\AccessControl.dll d:\a\_actions\joncloud\makensis-action\v1.1\.nsis\nsis-3.03\plugins\x86-ansi\AccessControl.dll
2020-05-20T22:34:54.2641087Z copying d:\a\_actions\joncloud\makensis-action\v1.1\nsis\plugins\DotNetChecker.dll d:\a\_actions\joncloud\makensis-action\v1.1\.nsis\nsis-3.03\plugins\x86-ansi\DotNetChecker.dll
2020-05-20T22:34:54.2641497Z copying d:\a\_actions\joncloud\makensis-action\v1.1\nsis\plugins\DumpLog.dll d:\a\_actions\joncloud\makensis-action\v1.1\.nsis\nsis-3.03\plugins\x86-ansi\DumpLog.dll
2020-05-20T22:34:54.2641736Z copying d:\a\_actions\joncloud\makensis-action\v1.1\nsis\plugins\FindProcDLL.dll d:\a\_actions\joncloud\makensis-action\v1.1\.nsis\nsis-3.03\plugins\x86-ansi\FindProcDLL.dll
2020-05-20T22:34:54.2747984Z copying d:\a\_actions\joncloud\makensis-action\v1.1\nsis\plugins\KillProcDLL-Url.txt d:\a\_actions\joncloud\makensis-action\v1.1\.nsis\nsis-3.03\plugins\x86-ansi\KillProcDLL-Url.txt
2020-05-20T22:34:54.2769182Z copying d:\a\_actions\joncloud\makensis-action\v1.1\nsis\plugins\KillProcDLL.dll d:\a\_actions\joncloud\makensis-action\v1.1\.nsis\nsis-3.03\plugins\x86-ansi\KillProcDLL.dll
2020-05-20T22:34:54.2770565Z copying d:\a\_actions\joncloud\makensis-action\v1.1\nsis\plugins\services.dll d:\a\_actions\joncloud\makensis-action\v1.1\.nsis\nsis-3.03\plugins\x86-ansi\services.dll
2020-05-20T22:34:54.2772082Z copying d:\a\_actions\joncloud\makensis-action\v1.1\nsis\plugins\Services2.dll d:\a\_actions\joncloud\makensis-action\v1.1\.nsis\nsis-3.03\plugins\x86-ansi\Services2.dll
2020-05-20T22:34:54.2820014Z copying d:\a\_actions\joncloud\makensis-action\v1.1\nsis\plugins\SimpleSC.dll d:\a\_actions\joncloud\makensis-action\v1.1\.nsis\nsis-3.03\plugins\x86-ansi\SimpleSC.dll
2020-05-20T22:34:54.2821205Z copying d:\a\_actions\joncloud\makensis-action\v1.1\nsis\plugins\ToolTips.dll d:\a\_actions\joncloud\makensis-action\v1.1\.nsis\nsis-3.03\plugins\x86-ansi\ToolTips.dll
2020-05-20T22:34:54.2844758Z copying d:\a\_actions\joncloud\makensis-action\v1.1\nsis\plugins\UserMgr.dll d:\a\_actions\joncloud\makensis-action\v1.1\.nsis\nsis-3.03\plugins\x86-ansi\UserMgr.dll
2020-05-20T22:34:54.2845322Z Time taken (Unzip): 313 millisecond(s)
2020-05-20T22:34:54.2846338Z Running d:\a\_actions\joncloud\makensis-action\v1.1\.nsis\nsis-3.03\makensis.exe /V1  "d:\a\microk8s\microk8s\installer\windows\microk8s.nsi"
2020-05-20T22:34:56.3748014Z Plugin not found, cannot call EnVar::AddValue
2020-05-20T22:34:56.3748527Z Error in script "d:\a\microk8s\microk8s\installer\windows\microk8s.nsi" on line 83 -- aborting creation process
2020-05-20T22:34:56.3754129Z ##[error]Command failed: d:\a\_actions\joncloud\makensis-action\v1.1\.nsis\nsis-3.03\makensis.exe /V1  "d:\a\microk8s\microk8s\installer\windows\microk8s.nsi"
Plugin not found, cannot call EnVar::AddValue
Error in script "d:\a\microk8s\microk8s\installer\windows\microk8s.nsi" on line 83 -- aborting creation process

2020-05-20T22:34:56.3980896Z Post job cleanup.
2020-05-20T22:34:58.4882507Z [command]"C:\Program Files\Git\bin\git.exe" version
2020-05-20T22:34:58.5090591Z git version 2.26.2.windows.1
2020-05-20T22:34:58.5161022Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp core\.sshCommand
2020-05-20T22:34:58.5426451Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2020-05-20T22:34:59.0873014Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2020-05-20T22:34:59.1082963Z http.https://github.com/.extraheader
2020-05-20T22:34:59.1128192Z [command]"C:\Program Files\Git\bin\git.exe" config --local --unset-all http.https://github.com/.extraheader
2020-05-20T22:34:59.1392832Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2020-05-20T22:34:59.6616192Z Cleaning up orphan processes

Thanks,
Joe

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.