From bc65de598722bcf4f4c8af04e3be0084a11f19fb Mon Sep 17 00:00:00 2001 From: Quantum Date: Tue, 21 Sep 2021 07:31:59 -0400 Subject: [PATCH] [host] installer: build 64-bit NSIS installers The host is a 64-bit application, so requiring 64-bit Windows isn't an issue. However, not using 32-bit installers has an advantage: we don't need to require WoW64. --- .github/workflows/build.yml | 2 +- host/platform/Windows/installer.nsi | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aae616f8..cc9b4e8d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -127,7 +127,7 @@ jobs: - name: Build Windows host installer run: | cd host\build - makensis platform\Windows\installer.nsi + makensis -DBUILD_32BIT platform\Windows\installer.nsi obs: runs-on: ubuntu-latest diff --git a/host/platform/Windows/installer.nsi b/host/platform/Windows/installer.nsi index 505501be..b7e318e8 100644 --- a/host/platform/Windows/installer.nsi +++ b/host/platform/Windows/installer.nsi @@ -26,13 +26,17 @@ ;Settings Name "Looking Glass (host)" -OutFile "looking-glass-host-setup.exe" +OutFile "looking-glass-host-setup.exe" Unicode true RequestExecutionLevel admin ShowInstDetails "show" ShowUninstDetails "show" InstallDir "$PROGRAMFILES64\Looking Glass (host)" +!ifndef BUILD_32BIT +Target AMD64-Unicode +!endif + !define MUI_ICON "icon.ico" !define MUI_UNICON "icon.ico" !define MUI_LICENSEPAGE_BUTTON "Agree"