[vlc-commits] [Git][videolan/vlc][master] package/win32: use a different CPU architecture for win64 .exe installer

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Nov 7 02:19:28 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
2b22905a by Steve Lhomme at 2026-11-07T01:22:26+00:00
package/win32: use a different CPU architecture for win64 .exe installer

makensis doesn't support arm64 yet.

- - - - -


4 changed files:

- extras/package/win32/NSIS/meson.build
- extras/package/win32/NSIS/spad.nsi.in
- extras/package/win32/NSIS/vlc.win32.nsi.in
- extras/package/win32/package.mak


Changes:

=====================================
extras/package/win32/NSIS/meson.build
=====================================
@@ -26,7 +26,7 @@ nsProcess_link_args = ['-static-libgcc']
 nsProcess_sources = files('nsProcess/nsProcess.c', 'nsProcess/nsis/pluginapi.c')
 nsProcess_src = []
 nsProcess_obj = []
-if host_machine.cpu_family() != 'x86'
+if host_machine.cpu_family() != 'x86' and host_machine.cpu_family() != 'x86_64'
     # nsProcess.dll needs to be a 32-bit DLL
     # with clang we can link a i686 DLL via -target i686-w64-mingw32
     if cc.has_link_argument(['--target=i686-w64-mingw32'], required: nsis_required)


=====================================
extras/package/win32/NSIS/spad.nsi.in
=====================================
@@ -4,6 +4,10 @@
 ; and http://msdn.microsoft.com/en-us/library/bb776851%28VS.85%29.aspx           ;
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
+ at HAVE_WIN64_FALSE@                   CPU "x86"
+ at HAVE_WIN64_TRUE@ @HAVE_ARM64_FALSE@ CPU "amd64"
+ at HAVE_WIN64_TRUE@ @HAVE_ARM64_TRUE@  CPU "x86"  ; use x86 until arm64 is supported
+
 !include LogicLib.nsh
 
 Function GetOptions
@@ -172,4 +176,4 @@ Section
 SectionEnd
 
 ;"setup" is aded to the file name to trigger the UAC heuristic and request admin privileges
-OutFile "spad-setup.exe"
\ No newline at end of file
+OutFile "spad-setup.exe"


=====================================
extras/package/win32/NSIS/vlc.win32.nsi.in
=====================================
@@ -47,6 +47,11 @@ Name "${PRODUCT_NAME}"
 @HAVE_WIN64_FALSE@                   OutFile ..\vlc-${VERSION}-win32.exe
 @HAVE_WIN64_TRUE@ @HAVE_ARM64_FALSE@ OutFile ..\vlc-${VERSION}-win64.exe
 @HAVE_WIN64_TRUE@ @HAVE_ARM64_TRUE@  OutFile ..\vlc-${VERSION}-winarm64.exe
+
+ at HAVE_WIN64_FALSE@                   CPU "x86"
+ at HAVE_WIN64_TRUE@ @HAVE_ARM64_FALSE@ CPU "amd64"
+ at HAVE_WIN64_TRUE@ @HAVE_ARM64_TRUE@  CPU "x86"  ; use x86 until arm64 is supported
+
 InstallDir "$@PROGRAMFILES@\${PRODUCT_PUBLISHER}\VLC"
 !ifdef NSIS_LZMA_COMPRESS_WHOLE
 SetCompressor lzma


=====================================
extras/package/win32/package.mak
=====================================
@@ -126,7 +126,7 @@ endif
 
 $(win32_destdir)/NSIS/nsProcess.dll: extras/package/win32/NSIS/nsProcess/nsProcess.c extras/package/win32/NSIS/nsProcess/nsis/pluginapi.c
 	mkdir -p "$(win32_destdir)/NSIS/"
-if HAVE_WIN64
+if HAVE_ARM64
 	i686-w64-mingw32-gcc $^ -shared -o $@ -static-libgcc -D_UNICODE=1 -DUNICODE=1
 	i686-w64-mingw32-strip $@
 else



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2b22905a8af2cda3cfea5c02bcac181ff24a1d7b

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2b22905a8af2cda3cfea5c02bcac181ff24a1d7b
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list