Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Nov 8, 2024
1 parent 7d8b3af commit 0c2687c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist-assets/windows/installer.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0c2687c

Please sign in to comment.