diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 37af144ef..43b5bf5d2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -136,10 +136,7 @@ jobs: if: matrix.config.os_identifier == 'win' - name: Package Windows - run: | - cd ./installer/windows - iwr -useb https://aka.ms/vs/17/release/vc_redist.x86.exe -outfile 'VC_redist.x86.exe' - makensis -WX -V3 installer.nsi + run: .\installer\windows\package.ps1 if: matrix.config.os_identifier == 'win' - name: Publish Windows Installer diff --git a/installer/windows/package.ps1 b/installer/windows/package.ps1 new file mode 100644 index 000000000..60372b726 --- /dev/null +++ b/installer/windows/package.ps1 @@ -0,0 +1,3 @@ +Set-Location ./installer/windows +Invoke-WebRequest -useb https://aka.ms/vs/17/release/vc_redist.x86.exe -outfile 'VC_redist.x86.exe' +makensis -WX -V3 installer.nsi \ No newline at end of file