From 5756e4d2a9e68632299f9ef48d6e8b95276d38c8 Mon Sep 17 00:00:00 2001 From: LocalIdentity Date: Tue, 16 Sep 2025 18:45:40 +1000 Subject: [PATCH] Update installer script to work with Windows server 2025 Windows server 2025 removed the NSIS package from being installed by default so we now need to specify it Also added the option to specify a tag version if we need to manually run the create installer again for a release --- .github/workflows/installer.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/installer.yml b/.github/workflows/installer.yml index 38465a87..e264193d 100644 --- a/.github/workflows/installer.yml +++ b/.github/workflows/installer.yml @@ -2,6 +2,12 @@ name: Create new installer on: release: types: [published] + workflow_dispatch: + inputs: + tag_name: + description: 'Tag to build' + required: true + default: 'v2.x.x' env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} jobs: @@ -14,9 +20,12 @@ jobs: repository: 'PathOfBuildingCommunity/PathOfBuilding-Installer' ref: 'master' ssh-key: '${{ secrets.POB_INSTALLER_KEY }}' + - name: Install NSIS + run: | + choco install nsis --yes + echo "C:\Program Files (x86)\NSIS" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - name: Create installer run: 'python3 make_release.py --game-version 1' - name: Upload artifact run: > - gh release upload ${{ github.event.release.tag_name }} (Get-ChildItem Dist -File).FullName --clobber -R ${{ github.repository }}; - + gh release upload ${{ github.event.release.tag_name || github.event.inputs.tag_name }} (Get-ChildItem Dist -File).FullName --clobber -R ${{ github.repository }};