From 1b185d0d6184b9ba03f815fe679245bffe9835b3 Mon Sep 17 00:00:00 2001 From: Markus Kaiser Date: Wed, 29 Jun 2022 17:35:16 +0100 Subject: Add NSIS and portable arm64 builds for Windows OS (#217) --- scripts/build-windows.ps1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/build-windows.ps1 b/scripts/build-windows.ps1 index 9f770dea1..ee0d67210 100644 --- a/scripts/build-windows.ps1 +++ b/scripts/build-windows.ps1 @@ -151,7 +151,13 @@ Pop-Location # ----------------------------------------------------------------------------- Write-Host "*************** Building app ***************" -$TARGET_ARCH="x64" +if ($env:PROCESSOR_ARCHITECTURE -eq "ARM64") { + $TARGET_ARCH="arm64" +} +else +{ + $TARGET_ARCH="x64" +} & $BASE_CMD run build -- --$TARGET_ARCH --dir Write-Host "*************** App successfully built! ***************" -- cgit v1.2.3-70-g09d2