Skip to content

build-nsis

build-nsis #9

Workflow file for this run

name: build-nsis
# on: [push, pull_request, workflow_dispatch]
on: [workflow_dispatch]
jobs:
build-nsis-exe:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install deps
run: |
choco install 7zip curl
curl -O https://nsis.sourceforge.io/mediawiki/images/c/c9/Inetc.zip
curl -O https://nsis.sourceforge.io/mediawiki/images/5/5a/NSISunzU.zip
curl -O https://nsis.sourceforge.io/mediawiki/images/6/69/Nsis7z_19.00.7z
7z x -o"${{ github.workspace }}\NSIS_Plugins" "${{ github.workspace }}\*.zip"
7z x -o"${{ github.workspace }}\NSIS_Plugins" "${{ github.workspace }}\*.7z"
ls -R
Move-Item -Path "NSIS_Plugins\NSISunzU\Plugin unicode\nsisunz.dll" -Destination "NSIS_Plugins\Plugins\x86-unicode\nsisunz.dll"
- name: list dirs
run: |
ls -R
- name: Create installer
uses: joncloud/makensis-action@v4.1
with:
arguments: "/V4"
script-file: "Build123dPortableSetup.nsi"
additional-plugin-paths: ${{ github.workspace }}\NSIS_Plugins\Plugins
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: PortableBuild123dSetup.exe
path: PortableBuild123dSetup.exe
# TODO: publishing
# publish-nsis: