Ignore:
Timestamp:
Feb 21, 2014, 4:44:11 PM (11 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: update vendor to 0.8.6

Location:
smplayer/vendor/current/setup/scripts
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/vendor/current/setup/scripts/install_smplayer.cmd

    r140 r154  
    66echo.
    77
    8 set /P QTVER="Qt Version (Default: 4.7.4): "
    9 if "%QTVER%"=="" set QTVER=4.7.4
     8set /P QTVER="Qt Version (Default: 4.8.4): "
     9if "%QTVER%"=="" set QTVER=4.8.4
    1010
    1111set OUTPUT_DIR=smplayer-build
     
    1616set SMPLAYER_SKINS_DIR=svn\smplayer-skins
    1717set MPLAYER_DIR=mplayer
    18 set QT_DIR=C:\QtSDK\Desktop\Qt\%QTVER%\mingw
     18rem set QT_DIR=C:\QtSDK\Desktop\Qt\%QTVER%\mingw
     19set QT_DIR=C:\Qt\%QTVER%
    1920
    2021echo.
     
    3233copy %QT_DIR%\bin\QtNetwork4.dll %OUTPUT_DIR%
    3334copy %QT_DIR%\bin\QtXml4.dll %OUTPUT_DIR%
     35copy %QT_DIR%\bin\QtScript4.dll %OUTPUT_DIR%
    3436copy %QT_DIR%\bin\mingwm10.dll %OUTPUT_DIR%
    3537if %QTVER% geq 4.6.0 (
  • smplayer/vendor/current/setup/scripts/make_pkgs.cmd

    r140 r154  
    5757echo --- Creating SMPlayer NSIS Packages ---
    5858echo.
    59 echo Format: VER_MAJOR.VER_MINOR.VER_BUILD.VER_REVISION
    60 echo Example: 0.8.1.0
    61 echo.
    62 echo Note: VER_REVISION must be defined as '0' if not used
     59echo Format: VER_MAJOR.VER_MINOR.VER_BUILD[.VER_REVISION]
     60echo VER_REVISION is optional (set to 0 if blank)
    6361echo.
    6462
    6563:: Reset in case ran again in same command prompt instance
     64set NSIS_PKG_VER=
    6665set VER_MAJOR=
    6766set VER_MINOR=
    6867set VER_BUILD=
    6968set VER_REVISION=
    70 
    71 set /P VER_MAJOR="VER_MAJOR: "
    72 set /P VER_MINOR="VER_MINOR: "
    73 set /P VER_BUILD="VER_BUILD: "
    74 set /P VER_REVISION="VER_REVISION: "
    75 
    76 echo.
    77 
    78 if %VER_REVISION% neq 0 (
    79 
    80 %NSIS_PATH%\makensis.exe /DVER_MAJOR=%VER_MAJOR% /DVER_MINOR=%VER_MINOR% /DVER_BUILD=%VER_BUILD% /DVER_REVISION=%VER_REVISION% %TOP_LEVEL_DIR%\smplayer.nsi
    81 rem %NSIS_PATH%\makensis.exe /DVER_MAJOR=%VER_MAJOR% /DVER_MINOR=%VER_MINOR% /DVER_BUILD=%VER_BUILD% /DVER_REVISION=%VER_REVISION% /DWIN64 %TOP_LEVEL_DIR%\smplayer.nsi
    82 rem %NSIS_PATH%\makensis.exe /DVER_MAJOR=%VER_MAJOR% /DVER_MINOR=%VER_MINOR% /DVER_BUILD=%VER_BUILD% /DVER_REVISION=%VER_REVISION% /DWIN64 %TOP_LEVEL_DIR%\smplayer.full.nsi
    83 
     69set VER_REV_CMD=
     70
     71:nsispkgver_again
     72Set /p NSIS_PKG_VER="Version: "
     73
     74for /f "tokens=1 delims=." %%j in ("%NSIS_PKG_VER%")  do set VER_MAJOR=%%j
     75for /f "tokens=2 delims=." %%k in ("%NSIS_PKG_VER%")  do set VER_MINOR=%%k
     76for /f "tokens=3 delims=." %%l in ("%NSIS_PKG_VER%")  do set VER_BUILD=%%l
     77for /f "tokens=4 delims=." %%m in ("%NSIS_PKG_VER%")  do set VER_REVISION=%%m
     78
     79if [%VER_MAJOR%]==[] (
     80  echo Major Version # must be specified [#.x.x]
     81  echo.
     82  goto nsispkgver_again
     83)
     84
     85if [%VER_MINOR%]==[] (
     86  echo Minor Version # must be specified [x.#.x]
     87  echo.
     88  goto nsispkgver_again
     89)
     90
     91if [%VER_BUILD%]==[] (
     92  echo Build Version # must be specified [x.x.#]
     93  echo.
     94  goto nsispkgver_again
     95)
     96
     97if [%VER_REVISION%]==[] (
     98  set VER_REV_CMD=
    8499) else (
    85 
    86 %NSIS_PATH%\makensis.exe /DVER_MAJOR=%VER_MAJOR% /DVER_MINOR=%VER_MINOR% /DVER_BUILD=%VER_BUILD% %TOP_LEVEL_DIR%\smplayer.nsi
    87 rem %NSIS_PATH%\makensis.exe /DVER_MAJOR=%VER_MAJOR% /DVER_MINOR=%VER_MINOR% /DVER_BUILD=%VER_BUILD% /DWIN64 %TOP_LEVEL_DIR%\smplayer.nsi
    88 rem %NSIS_PATH%\makensis.exe /DVER_MAJOR=%VER_MAJOR% /DVER_MINOR=%VER_MINOR% /DVER_BUILD=%VER_BUILD% /DWIN64 %TOP_LEVEL_DIR%\smplayer.full.nsi
    89 
    90 )
    91 
    92 echo.
     100  set VER_REV_CMD= /DVER_REVISION=%VER_REVISION%
     101)
     102
     103if exist %TOP_LEVEL_DIR%\smplayer-build (
     104  %NSIS_PATH%\makensis.exe /DVER_MAJOR=%VER_MAJOR% /DVER_MINOR=%VER_MINOR% /DVER_BUILD=%VER_BUILD%%VER_REV_CMD% %TOP_LEVEL_DIR%\smplayer.nsi
     105)
     106
     107if exist %TOP_LEVEL_DIR%\smplayer-build64 (
     108  %NSIS_PATH%\makensis.exe /DVER_MAJOR=%VER_MAJOR% /DVER_MINOR=%VER_MINOR% /DVER_BUILD=%VER_BUILD%%VER_REV_CMD% /DWIN64 %TOP_LEVEL_DIR%\smplayer.nsi
     109)
    93110
    94111goto end
     
    122139
    123140echo.
    124 echo ######      Backing up files       #######
     141echo Backing up files...
    125142echo.
    126143
     
    130147
    131148echo.
    132 echo ######   Create screenshots dir.   #######
     149echo Creating screenshots dir...
    133150echo.
    134151
     
    136153
    137154echo.
    138 echo ######    Create mplayer config    #######
    139 echo.
    140 
    141 echo ## MPlayer Windows configuration>> %SMPLAYER_PORTABLE_DIR%\mplayer\mplayer\config
     155echo Creating smplayer.ini...
     156echo.
     157
     158echo [%%General]> %SMPLAYER_PORTABLE_DIR%\smplayer.ini
     159echo screenshot_directory=.\\screenshots>> %SMPLAYER_PORTABLE_DIR%\smplayer.ini
     160echo.>> %SMPLAYER_PORTABLE_DIR%\smplayer.ini
     161echo [advanced]>> %SMPLAYER_PORTABLE_DIR%\smplayer.ini
     162echo mplayer_additional_options=-nofontconfig>> %SMPLAYER_PORTABLE_DIR%\smplayer.ini
     163
     164echo.
     165echo Creating smplayer_orig.ini...
     166echo.
     167
     168echo [%%General]> %SMPLAYER_PORTABLE_DIR%\smplayer_orig.ini
     169echo screenshot_directory=.\\screenshots>> %SMPLAYER_PORTABLE_DIR%\smplayer_orig.ini
     170echo.>> %SMPLAYER_PORTABLE_DIR%\smplayer_orig.ini
     171echo [advanced]>> %SMPLAYER_PORTABLE_DIR%\smplayer_orig.ini
     172echo mplayer_additional_options=-nofontconfig>> %SMPLAYER_PORTABLE_DIR%\smplayer_orig.ini
     173
     174echo.
     175echo Creating mplayer config...
     176echo.
     177
     178echo ## MPlayer Windows configuration> %SMPLAYER_PORTABLE_DIR%\mplayer\mplayer\config
    142179echo.>> %SMPLAYER_PORTABLE_DIR%\mplayer\mplayer\config
    143180echo subfont=c:\windows\fonts\arial.ttf>> %SMPLAYER_PORTABLE_DIR%\mplayer\mplayer\config
     
    145182
    146183echo.
    147 echo ######    Copying portable .exe    #######
     184echo Copying portable .exe...
    148185echo.
    149186
     
    152189
    153190echo.
    154 echo ######  Creating portable package  #######
    155 echo.
    156 7za a -t7z %OUTPUT_DIR%\smplayer-portable-%SMPLAYER_VER%.7z %SMPLAYER_PORTABLE_DIR% -xr!*.bak -xr!qxtcore.dll -mx9
     191echo Finalizing portable package...
     192echo.
     1937za a -t7z %OUTPUT_DIR%\smplayer-portable-%SMPLAYER_VER%.7z %SMPLAYER_PORTABLE_DIR% -xr!*.bak -xr!qxtcore.dll -xr!mplayer64.exe -mx9
    157194
    158195echo.
Note: See TracChangeset for help on using the changeset viewer.