From 0c2687cdf697a7817ba5ab49490c8c3978b0ce0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20L=C3=B6nnhager?= Date: Fri, 8 Nov 2024 11:48:22 +0100 Subject: [PATCH] fixup --- dist-assets/windows/installer.nsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dist-assets/windows/installer.nsh b/dist-assets/windows/installer.nsh index d45f613e5022..6f85a897132f 100644 --- a/dist-assets/windows/installer.nsh +++ b/dist-assets/windows/installer.nsh @@ -699,6 +699,8 @@ StrCpy $NativeTarget "unsupported arch" ${EndIf} + # $%TARGET_ARCHITECTURE% is set by distribution.js to the native architecture + # (see https://www.electron.build/builder-util.typealias.archtype) ${If} $%TARGET_ARCHITECTURE% != $NativeTarget MessageBox MB_ICONSTOP|MB_TOPMOST|MB_OK "This build of the app does not run on $NativeTarget Windows. Please find the appropriate installer on the website." Abort