We must download LibVLC during installation
This commit is contained in:
@@ -408,6 +408,19 @@ Section "Viewer"
|
||||
|
||||
;This placeholder is replaced by the complete list of all the files in the installer, by viewer_manifest.py
|
||||
%%INSTALL_FILES%%
|
||||
|
||||
;Download LibVLC
|
||||
!ifdef WIN64_BIN_BUILD
|
||||
NSISdl::download "http://download.videolan.org/pub/videolan/vlc/2.2.8/win64/vlc-2.2.8-win64.7z" "$INSTDIR\libvlc.7z"
|
||||
!else
|
||||
NSISdl::download "http://download.videolan.org/pub/videolan/vlc/2.2.8/win32/vlc-2.2.8-win32.7z" "$INSTDIR\libvlc.7z"
|
||||
!endif
|
||||
Nsis7z::Extract "$INSTDIR\libvlc.7z"
|
||||
Rename "$INSTDIR\vlc-2.2.8\libvlc.dll" "$INSTDIR\llplugin\libvlc.dll"
|
||||
Rename "$INSTDIR\vlc-2.2.8\libvlccore.dll" "$INSTDIR\llplugin\libvlccore.dll"
|
||||
Rename "$INSTDIR\vlc-2.2.8\plugins" "$INSTDIR\llplugin\plugins"
|
||||
RMDir /r "$INSTDIR\vlc-2.2.8"
|
||||
Delete "$INSTDIR\libvlc.7z"
|
||||
|
||||
;Pass the installer's language to the client to use as a default
|
||||
StrCpy $SHORTCUT_LANG_PARAM "--set InstallLanguage $(LanguageCode)"
|
||||
|
||||
@@ -660,6 +660,8 @@ class WindowsManifest(ViewerManifest):
|
||||
out_path = None
|
||||
for pkg_file in dest_files:
|
||||
rel_file = os.path.normpath(pkg_file.replace(self.get_dst_prefix()+os.path.sep,''))
|
||||
if install and rel_file.startswith(("llplugin\\libvlc", "llplugin\\plugins\\")):
|
||||
continue
|
||||
installed_dir = wpath(os.path.join('$INSTDIR', os.path.dirname(rel_file)))
|
||||
pkg_file = wpath(os.path.normpath(pkg_file))
|
||||
if installed_dir != out_path:
|
||||
|
||||
Reference in New Issue
Block a user