Ignore:
Timestamp:
Oct 24, 2012, 8:25:23 PM (13 years ago)
Author:
Silvan Scherrer
Message:

SMplayer: update trunk to 0.8.1

Location:
smplayer/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/setup/scripts/install_smplayer.cmd

    r124 r135  
    2424copy %SMPLAYER_DIR%\src\release\smplayer.exe %OUTPUT_DIR%
    2525copy %SMPLAYER_DIR%\dxlist\release\dxlist.exe %OUTPUT_DIR%
    26 copy %SMPLAYER_DIR%\zlib-1.2.6\zlib1.dll %OUTPUT_DIR%
     26copy %SMPLAYER_DIR%\zlib\zlib1.dll %OUTPUT_DIR%
    2727copy %SMPLAYER_DIR%\*.txt %OUTPUT_DIR%
    2828copy %QT_DIR%\bin\QtCore4.dll %OUTPUT_DIR%
  • smplayer/trunk/setup/scripts/make_pkgs.cmd

    r128 r135  
    1313echo * Release Packages
    1414echo.
    15 echo 1 - Portable SMPlayer Package
    16 echo 2 - SMPlayer Package w/o MPlayer
    17 echo 3 - MPlayer Package
     15echo 1 - NSIS SMPlayer Packages
     16echo 2 - Portable SMPlayer Package
     17echo 3 - SMPlayer Package w/o MPlayer
     18echo 4 - MPlayer Package
    1819echo.
    1920echo * Update Packages
    2021echo.
    21 echo 4 - SMPlayer SVN Update Package
    22 echo 5 - Qt DLL Package
    23 
    24 echo.
    25 
     22echo 5 - SMPlayer SVN Update Package
     23echo 6 - Qt DLL Package
     24
     25echo.
     26
     27:: Relative directory of all the source files to this script
    2628set TOP_LEVEL_DIR=..
     29
     30:: Reset in case ran again in same command prompt instance
     31set SMPLAYER_VER=
     32
     33:: NSIS path
     34set NSIS_PATH="C:\Program Files (x86)\NSIS\Unicode"
    2735
    2836set SMPLAYER_DIR=%TOP_LEVEL_DIR%\smplayer-build
     
    3644echo.
    3745
    38 if "%USER_CHOICE%" == "1"     goto portable
    39 if "%USER_CHOICE%" == "2"     goto nomplayer
    40 if "%USER_CHOICE%" == "3"     goto mplayer
    41 if "%USER_CHOICE%" == "4"     goto svn_updpkg
    42 if "%USER_CHOICE%" == "5"     goto qtdlls
    43 if "%USER_CHOICE%" == ""      goto end
     46if "%USER_CHOICE%" == "1" (
     47  goto nsispkg
     48
     49) else if "%USER_CHOICE%" == "2" (
     50  goto portable
     51
     52) else if "%USER_CHOICE%" == "3" (
     53  goto nomplayer
     54
     55) else if "%USER_CHOICE%" == "4" (
     56  goto mplayer
     57
     58) else if "%USER_CHOICE%" == "5" (
     59  goto svn_updpkg
     60
     61) else if "%USER_CHOICE%" == "6" (
     62  goto qtdlls
     63
     64) else (
     65  goto reask
     66)
     67
     68:nsispkg
     69
     70echo --- Creating SMPlayer NSIS Packages ---
     71echo.
     72echo Format: VER_MAJOR.VER_MINOR.VER_BUILD.VER_REVISION
     73echo Example: 0.8.1.0
     74echo.
     75echo Note: VER_REVISION must be defined as '0' if not used
     76echo.
     77
     78:: Reset in case ran again in same command prompt instance
     79set VER_MAJOR=
     80set VER_MINOR=
     81set VER_BUILD=
     82set VER_REVISION=
     83
     84set /P VER_MAJOR="VER_MAJOR: "
     85set /P VER_MINOR="VER_MINOR: "
     86set /P VER_BUILD="VER_BUILD: "
     87set /P VER_REVISION="VER_REVISION: "
     88
     89echo.
     90
     91if %VER_REVISION% neq 0 (
     92
     93%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
     94rem %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
     95rem %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
     96
     97) else (
     98
     99%NSIS_PATH%\makensis.exe /DVER_MAJOR=%VER_MAJOR% /DVER_MINOR=%VER_MINOR% /DVER_BUILD=%VER_BUILD% %TOP_LEVEL_DIR%\smplayer.nsi
     100rem %NSIS_PATH%\makensis.exe /DVER_MAJOR=%VER_MAJOR% /DVER_MINOR=%VER_MINOR% /DVER_BUILD=%VER_BUILD% /DWIN64 %TOP_LEVEL_DIR%\smplayer.nsi
     101rem %NSIS_PATH%\makensis.exe /DVER_MAJOR=%VER_MAJOR% /DVER_MINOR=%VER_MINOR% /DVER_BUILD=%VER_BUILD% /DWIN64 %TOP_LEVEL_DIR%\smplayer.full.nsi
     102
     103)
     104
     105echo.
     106
     107goto end
    44108
    45109:portable
     
    48112
    49113set /P SMPLAYER_VER="SMPlayer Version: "
    50 if "%SMPLAYER_VER%"=="" exit
    51 echo.
     114if "%SMPLAYER_VER%"=="" goto end
     115echo.
     116
     117:: Check for portable exes
     118if not exist %PORTABLE_EXE_DIR%\smplayer-portable.exe (
     119  echo SMPlayer portable EXE not found!
     120        goto end
     121)
     122
     123if not exist %PORTABLE_EXE_DIR%\smtube-portable.exe (
     124  echo SMTube portable EXE not found!
     125        goto end
     126)
    52127
    53128ren %SMPLAYER_DIR% smplayer-portable-%SMPLAYER_VER%
    54 set SMPLAYER_DIR=%TOP_LEVEL_DIR%\smplayer-portable-%SMPLAYER_VER%
     129set SMPLAYER_PORTABLE_DIR=%TOP_LEVEL_DIR%\smplayer-portable-%SMPLAYER_VER%
     130
     131if not exist %TOP_LEVEL_DIR%\smplayer-portable-%SMPLAYER_VER% (
     132  echo Oops! Unable to find renamed directory, make sure no files are opened.
     133        goto end
     134)
    55135
    56136echo.
     
    58138echo.
    59139
    60 ren %SMPLAYER_DIR%\smplayer.exe smplayer.bak
    61 ren %SMPLAYER_DIR%\mplayer\mplayer\config config.bak
     140ren %SMPLAYER_PORTABLE_DIR%\smplayer.exe smplayer.bak
     141ren %SMPLAYER_PORTABLE_DIR%\smtube.exe smtube.bak
     142ren %SMPLAYER_PORTABLE_DIR%\mplayer\mplayer\config config.bak
    62143
    63144echo.
     
    65146echo.
    66147
    67 mkdir %SMPLAYER_DIR%\screenshots
     148mkdir %SMPLAYER_PORTABLE_DIR%\screenshots
    68149
    69150echo.
     
    71152echo.
    72153
    73 echo [%%General]>> %SMPLAYER_DIR%\smplayer.ini
    74 echo screenshot_directory=.\\screenshots>> %SMPLAYER_DIR%\smplayer.ini
    75 echo.>> %SMPLAYER_DIR%\smplayer.ini
    76 echo [advanced]>> %SMPLAYER_DIR%\smplayer.ini
    77 echo mplayer_additional_options=-nofontconfig>> %SMPLAYER_DIR%\smplayer.ini
     154echo [%%General]>> %SMPLAYER_PORTABLE_DIR%\smplayer.ini
     155echo screenshot_directory=.\\screenshots>> %SMPLAYER_PORTABLE_DIR%\smplayer.ini
     156echo.>> %SMPLAYER_PORTABLE_DIR%\smplayer.ini
     157echo [advanced]>> %SMPLAYER_PORTABLE_DIR%\smplayer.ini
     158echo mplayer_additional_options=-nofontconfig>> %SMPLAYER_PORTABLE_DIR%\smplayer.ini
    78159
    79160echo.
     
    81162echo.
    82163
    83 echo [%%General]>> %SMPLAYER_DIR%\smplayer_orig.ini
    84 echo screenshot_directory=.\\screenshots>> %SMPLAYER_DIR%\smplayer_orig.ini
    85 echo.>> %SMPLAYER_DIR%\smplayer_orig.ini
    86 echo [advanced]>> %SMPLAYER_DIR%\smplayer_orig.ini
    87 echo mplayer_additional_options=-nofontconfig>> %SMPLAYER_DIR%\smplayer_orig.ini
     164echo [%%General]>> %SMPLAYER_PORTABLE_DIR%\smplayer_orig.ini
     165echo screenshot_directory=.\\screenshots>> %SMPLAYER_PORTABLE_DIR%\smplayer_orig.ini
     166echo.>> %SMPLAYER_PORTABLE_DIR%\smplayer_orig.ini
     167echo [advanced]>> %SMPLAYER_PORTABLE_DIR%\smplayer_orig.ini
     168echo mplayer_additional_options=-nofontconfig>> %SMPLAYER_PORTABLE_DIR%\smplayer_orig.ini
    88169
    89170echo.
     
    91172echo.
    92173
    93 echo ## MPlayer Windows configuration>> %SMPLAYER_DIR%\mplayer\mplayer\config
    94 echo.>> %SMPLAYER_DIR%\mplayer\mplayer\config
    95 echo subfont=c:\windows\fonts\arial.ttf>> %SMPLAYER_DIR%\mplayer\mplayer\config
    96 echo ^<cachedir^>../fontconfig^</cachedir^>> %SMPLAYER_DIR%\mplayer\fonts\local.conf
     174echo ## MPlayer Windows configuration>> %SMPLAYER_PORTABLE_DIR%\mplayer\mplayer\config
     175echo.>> %SMPLAYER_PORTABLE_DIR%\mplayer\mplayer\config
     176echo subfont=c:\windows\fonts\arial.ttf>> %SMPLAYER_PORTABLE_DIR%\mplayer\mplayer\config
     177echo ^<cachedir^>../fontconfig^</cachedir^>> %SMPLAYER_PORTABLE_DIR%\mplayer\fonts\local.conf
    97178
    98179echo.
     
    100181echo.
    101182
    102 copy /y %PORTABLE_EXE_DIR%\smplayer-portable.exe %SMPLAYER_DIR%\smplayer.exe
     183copy /y %PORTABLE_EXE_DIR%\smplayer-portable.exe %SMPLAYER_PORTABLE_DIR%\smplayer.exe
     184copy /y %PORTABLE_EXE_DIR%\smtube-portable.exe %SMPLAYER_PORTABLE_DIR%\smtube.exe
    103185
    104186echo.
    105187echo ######  Creating portable package  #######
    106188echo.
    107 7za a -t7z %OUTPUT_DIR%\smplayer-portable-%SMPLAYER_VER%.7z %SMPLAYER_DIR% -xr!*.bak -xr!qxtcore.dll -mx9
     1897za a -t7z %OUTPUT_DIR%\smplayer-portable-%SMPLAYER_VER%.7z %SMPLAYER_PORTABLE_DIR% -xr!*.bak -xr!qxtcore.dll -mx9
    108190
    109191echo.
    110192echo Restoring source folder(s) back to its original state...
    111193echo.
    112 rmdir %SMPLAYER_DIR%\screenshots
    113 del %SMPLAYER_DIR%\smplayer.ini
    114 del %SMPLAYER_DIR%\smplayer_orig.ini
    115 del %SMPLAYER_DIR%\smplayer.exe
    116 del %SMPLAYER_DIR%\mplayer\mplayer\config
    117 del %SMPLAYER_DIR%\mplayer\fonts\local.conf
    118 ren %SMPLAYER_DIR%\smplayer.bak smplayer.exe
    119 ren %SMPLAYER_DIR%\mplayer\mplayer\config.bak config
    120 ren %SMPLAYER_DIR% smplayer-build
     194rmdir %SMPLAYER_PORTABLE_DIR%\screenshots
     195del %SMPLAYER_PORTABLE_DIR%\smplayer.ini
     196del %SMPLAYER_PORTABLE_DIR%\smplayer_orig.ini
     197del %SMPLAYER_PORTABLE_DIR%\smplayer.exe
     198del %SMPLAYER_PORTABLE_DIR%\smtube.exe
     199del %SMPLAYER_PORTABLE_DIR%\mplayer\mplayer\config
     200del %SMPLAYER_PORTABLE_DIR%\mplayer\fonts\local.conf
     201ren %SMPLAYER_PORTABLE_DIR%\smplayer.bak smplayer.exe
     202ren %SMPLAYER_PORTABLE_DIR%\smtube.bak smtube.exe
     203ren %SMPLAYER_PORTABLE_DIR%\mplayer\mplayer\config.bak config
     204ren %SMPLAYER_PORTABLE_DIR% smplayer-build
    121205
    122206goto end
     
    127211
    128212set /P SMPLAYER_VER="SMPlayer Version: "
    129 if "%SMPLAYER_VER%"=="" exit
     213if "%SMPLAYER_VER%"=="" goto end
    130214echo.
    131215
     
    152236set MPLAYER_DIR=%TOP_LEVEL_DIR%\mplayer-svn-%MP_REV%
    153237
    154 7za a -t7z %OUTPUT_DIR%\mplayer-svn-%MP_REV%.7z %MPLAYER_DIR% -mx9
     2387za a -t7z %OUTPUT_DIR%\mplayer-svn-%MP_REV%.7z %MPLAYER_DIR% -xr!mencoder.exe -mx9
    155239
    156240ren %MPLAYER_DIR% mplayer
     
    168252
    169253set /P SMPLAYER_SVN="SMPlayer SVN Revision: "
    170 if "%SMPLAYER_SVN%"=="" exit
     254if "%SMPLAYER_SVN%"=="" goto end
    171255
    1722567za a -t7z %OUTPUT_DIR%\smplayer_update_svn_r%SMPLAYER_SVN%.7z %SMPLAYER_DIR%\smplayer.exe %SMPLAYER_DIR%\translations -mx9
     
    177261
    178262set /P QTVER="Qt Version: "
    179 if "%QTVER%"=="" exit
     263if "%QTVER%"=="" goto end
    180264
    181265echo.
Note: See TracChangeset for help on using the changeset viewer.