Use CMake for Windows installer branding

As a side effect, fixes an issue where the installer wrote the incorrect version to the registry.
This commit is contained in:
Kenneth Chew
2022-05-29 17:37:45 -04:00
parent d7fad4bd04
commit 8731c86d0d
4 changed files with 28 additions and 22 deletions

View File

@ -206,7 +206,7 @@ jobs:
shell: msys2 {0}
run: |
cd ${{ env.INSTALL_DIR }}
makensis -NOCD "-DVERSION=${{ env.VERSION }}" "-DMUI_ICON=${{ github.workspace }}/program_info/polymc.ico" "-XOutFile ${{ github.workspace }}/PolyMC-Setup.exe" "${{ github.workspace }}/program_info/win_install.nsi"
makensis -NOCD "${{ github.workspace }}/${{ env.BUILD_DIR }}/program_info/win_install.nsi"
- name: Package (Linux)
if: runner.os == 'Linux' && matrix.appimage != true