Ignore:
Timestamp:
Jan 24, 2017, 12:41:54 PM (8 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: update trunk to version 17.1.0

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/setup/smplayer.nsi

    r181 r188  
    11;Installer script for win32/win64 SMPlayer
    22;Written by redxii (redxii@users.sourceforge.net)
    3 ;Tested/Developed with Unicode NSIS 2.46.5/3.0rc1
     3;Tested/Developed with Unicode NSIS 2.46.5/3.01
     4
     5; See http://nsis.sourceforge.net/Check_if_a_file_exists_at_compile_time for documentation
     6!macro !defineifexist _VAR_NAME _FILE_NAME
     7  !tempfile _TEMPFILE
     8  !ifdef NSIS_WIN32_MAKENSIS
     9    ; Windows - cmd.exe
     10    !system 'if exist "${_FILE_NAME}" echo !define ${_VAR_NAME} > "${_TEMPFILE}"'
     11  !else
     12    ; Posix - sh
     13    !system 'if [ -e "${_FILE_NAME}" ]; then echo "!define ${_VAR_NAME}" > "${_TEMPFILE}"; fi'
     14  !endif
     15  !include '${_TEMPFILE}'
     16  !delfile '${_TEMPFILE}'
     17  !undef _TEMPFILE
     18!macroend
     19!define !defineifexist "!insertmacro !defineifexist"
    420
    521!ifndef VER_MAJOR | VER_MINOR | VER_BUILD
     
    5268  !define SMPLAYER_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\SMPlayer"
    5369
     70  !define STATUS_DLL_NOT_FOUND "-1073741515"
     71
     72  ${!defineifexist} COMPILED_WITH_QT4 ${SMPLAYER_BUILD_DIR}\QtCore4.dll
     73
    5474  ; Not the same as Qt, check file properties of the webkit dll if unsure
    5575!ifndef QT_WEBKIT_VERSION
    56   !define QT_WEBKIT_VERSION "5.6.1.0"
    57 !endif
    58 
    59   !define STATUS_DLL_NOT_FOUND "-1073741515"
     76  !ifdef COMPILED_WITH_QT4
     77    ; Qt Webkit version in 4.8.7
     78    !define QT_WEBKIT_VERSION "4.9.4.0"
     79  !else
     80    !define QT_WEBKIT_VERSION "5.6.1.0"
     81  !endif
     82!endif
    6083
    6184;--------------------------------
     
    6689  BrandingText "SMPlayer for Windows v${SMPLAYER_VERSION}"
    6790!ifdef WIN64
    68   OutFile "output\smplayer-${SMPLAYER_VERSION}-x64.exe"
     91  !ifdef COMPILED_WITH_QT4
     92    OutFile "output\smplayer-${SMPLAYER_VERSION}-x64-Qt4.exe"
     93  !else
     94    OutFile "output\smplayer-${SMPLAYER_VERSION}-x64.exe"
     95  !endif
    6996!else
    70   OutFile "output\smplayer-${SMPLAYER_VERSION}-win32.exe"
     97  !ifdef COMPILED_WITH_QT4
     98    OutFile "output\smplayer-${SMPLAYER_VERSION}-win32-Qt4.exe"
     99  !else
     100    OutFile "output\smplayer-${SMPLAYER_VERSION}-win32.exe"
     101  !endif
    71102!endif
    72103
     
    375406
    376407  ;Qt platforms (Qt 5+)
     408!ifndef COMPILED_WITH_QT4
    377409  SetOutPath "$INSTDIR\platforms"
    378410  File /nonfatal /r "${SMPLAYER_BUILD_DIR}\platforms\*.*"
     411!endif
    379412
    380413  ;SMPlayer key shortcuts
     
    437470  File /oname=mpv.com "${SMPLAYER_BUILD_DIR}\mpv\mpv64.com"
    438471!else
    439   File /r /x mpv64.exe /x mpv64.com "${SMPLAYER_BUILD_DIR}\mpv\*.*"
     472  File /r /x mpv64.exe /x mpv64.com /x d3dcompiler_43.dll "${SMPLAYER_BUILD_DIR}\mpv\*.*"
    440473!endif
    441474
     
    501534    CopyFiles /SILENT "$PLUGINSDIR\smtubebak\docs\smtube\*" "$INSTDIR\docs\smtube"
    502535    CopyFiles /SILENT "$PLUGINSDIR\smtubebak\translations\*" "$INSTDIR\translations"
     536!ifdef COMPILED_WITH_QT4
     537    CopyFiles /SILENT "$PLUGINSDIR\smtubebak\QtWebKit4.dll" "$INSTDIR"
     538!else
    503539    CopyFiles /SILENT "$PLUGINSDIR\smtubebak\icuin*.dll" "$INSTDIR"
    504540    CopyFiles /SILENT "$PLUGINSDIR\smtubebak\icuuc*.dll" "$INSTDIR"
     
    516552    CopyFiles /SILENT "$PLUGINSDIR\smtubebak\Qt5PrintSupport.dll" "$INSTDIR"
    517553    CopyFiles /SILENT "$PLUGINSDIR\smtubebak\Qt5MultimediaWidgets.dll" "$INSTDIR"
     554!endif
    518555  ${EndIf}
    519556
     
    549586  ;Registry Uninstall information
    550587!ifdef WIN64
    551   WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "DisplayName" "$(^Name) (x64)"
     588  !ifdef COMPILED_WITH_QT4
     589    WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "DisplayName" "$(^Name) (x64) (Qt4)"
     590  !else
     591    WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "DisplayName" "$(^Name) (x64)"
     592  !endif
    552593!else
    553   WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "DisplayName" "$(^Name)"
     594  !ifdef COMPILED_WITH_QT4
     595    WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "DisplayName" "$(^Name) (Qt4)"
     596  !else
     597    WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "DisplayName" "$(^Name)"
     598  !endif
    554599!endif
    555600  WriteRegStr HKLM "${SMPLAYER_UNINST_KEY}" "DisplayIcon" "$INSTDIR\smplayer.exe"
     
    720765  Delete "$INSTDIR\smtube.exe"
    721766  Delete "$INSTDIR\dxlist.exe"
     767  Delete "$INSTDIR\simple_web_server.exe"
    722768  Delete "$INSTDIR\icudt*.dll"
    723769  Delete "$INSTDIR\icuin*.dll"
     
    773819Function .onInit
    774820
     821!ifdef COMPILED_WITH_QT4
     822  MessageBox MB_OK|MB_ICONEXCLAMATION "This build is provided for legacy CPUs (those without SSE2 or later instruction set support). Please do not use if you do not know what you are doing."
     823!endif
     824
    775825!ifdef WIN64
    776826  ${Unless} ${AtLeastWinVista}
     
    9611011    CopyFiles /SILENT "$SMPlayer_Path\docs\smtube\*" "$PLUGINSDIR\smtubebak\docs\smtube"
    9621012    CopyFiles /SILENT "$SMPlayer_Path\translations\smtube*.qm" "$PLUGINSDIR\smtubebak\translations"
     1013!ifdef COMPILED_WITH_QT4
     1014    CopyFiles /SILENT "$SMPlayer_Path\QtWebKit4.dll" "$PLUGINSDIR\smtubebak"
     1015!else
    9631016    CopyFiles /SILENT "$SMPlayer_Path\icuin*.dll" "$PLUGINSDIR\smtubebak"
    9641017    CopyFiles /SILENT "$SMPlayer_Path\icuuc*.dll" "$PLUGINSDIR\smtubebak"
     
    9761029    CopyFiles /SILENT "$SMPlayer_Path\Qt5PrintSupport.dll" "$PLUGINSDIR\smtubebak"
    9771030    CopyFiles /SILENT "$SMPlayer_Path\Qt5MultimediaWidgets.dll" "$PLUGINSDIR\smtubebak"
     1031!endif
    9781032    StrCpy $Restore_SMTube 1
    9791033    Return
    9801034  QtVerMismatch:
    9811035    DetailPrint $(SMTube_Incompatible_Msg1)
    982     DetailPrint $(SMTube_Incompatible_Msg2)
    983     Sleep 5000
     1036    ;DetailPrint $(SMTube_Incompatible_Msg2)
     1037    Sleep 15000
    9841038  NoBackup:
    9851039    StrCpy $Restore_SMTube 0
     
    11451199  ; Get version of Qt5Core.dll from the build sources (smplayer-build/smplayer-build64)
    11461200  ClearErrors
     1201!ifdef COMPILED_WITH_QT4
     1202  GetDLLVersionLocal ${SMPLAYER_BUILD_DIR}\QtCore4.dll $R0 $R1
     1203!else
    11471204  GetDLLVersionLocal ${SMPLAYER_BUILD_DIR}\Qt5Core.dll $R0 $R1
     1205!endif
    11481206  IntOp $R2 $R0 / 0x00010000
    11491207  IntOp $R3 $R0 & 0x0000FFFF
Note: See TracChangeset for help on using the changeset viewer.