Changeset 135 for smplayer/trunk/setup/scripts
- Timestamp:
- Oct 24, 2012, 8:25:23 PM (13 years ago)
- Location:
- smplayer/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/trunk
- Property svn:mergeinfo changed
/smplayer/vendor/current merged: 133
- Property svn:mergeinfo changed
-
smplayer/trunk/setup/scripts/install_smplayer.cmd
r124 r135 24 24 copy %SMPLAYER_DIR%\src\release\smplayer.exe %OUTPUT_DIR% 25 25 copy %SMPLAYER_DIR%\dxlist\release\dxlist.exe %OUTPUT_DIR% 26 copy %SMPLAYER_DIR%\zlib -1.2.6\zlib1.dll %OUTPUT_DIR%26 copy %SMPLAYER_DIR%\zlib\zlib1.dll %OUTPUT_DIR% 27 27 copy %SMPLAYER_DIR%\*.txt %OUTPUT_DIR% 28 28 copy %QT_DIR%\bin\QtCore4.dll %OUTPUT_DIR% -
smplayer/trunk/setup/scripts/make_pkgs.cmd
r128 r135 13 13 echo * Release Packages 14 14 echo. 15 echo 1 - Portable SMPlayer Package 16 echo 2 - SMPlayer Package w/o MPlayer 17 echo 3 - MPlayer Package 15 echo 1 - NSIS SMPlayer Packages 16 echo 2 - Portable SMPlayer Package 17 echo 3 - SMPlayer Package w/o MPlayer 18 echo 4 - MPlayer Package 18 19 echo. 19 20 echo * Update Packages 20 21 echo. 21 echo 4 - SMPlayer SVN Update Package 22 echo 5 - Qt DLL Package 23 24 echo. 25 22 echo 5 - SMPlayer SVN Update Package 23 echo 6 - Qt DLL Package 24 25 echo. 26 27 :: Relative directory of all the source files to this script 26 28 set TOP_LEVEL_DIR=.. 29 30 :: Reset in case ran again in same command prompt instance 31 set SMPLAYER_VER= 32 33 :: NSIS path 34 set NSIS_PATH="C:\Program Files (x86)\NSIS\Unicode" 27 35 28 36 set SMPLAYER_DIR=%TOP_LEVEL_DIR%\smplayer-build … … 36 44 echo. 37 45 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 46 if "%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 70 echo --- Creating SMPlayer NSIS Packages --- 71 echo. 72 echo Format: VER_MAJOR.VER_MINOR.VER_BUILD.VER_REVISION 73 echo Example: 0.8.1.0 74 echo. 75 echo Note: VER_REVISION must be defined as '0' if not used 76 echo. 77 78 :: Reset in case ran again in same command prompt instance 79 set VER_MAJOR= 80 set VER_MINOR= 81 set VER_BUILD= 82 set VER_REVISION= 83 84 set /P VER_MAJOR="VER_MAJOR: " 85 set /P VER_MINOR="VER_MINOR: " 86 set /P VER_BUILD="VER_BUILD: " 87 set /P VER_REVISION="VER_REVISION: " 88 89 echo. 90 91 if %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 94 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 95 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 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 100 rem %NSIS_PATH%\makensis.exe /DVER_MAJOR=%VER_MAJOR% /DVER_MINOR=%VER_MINOR% /DVER_BUILD=%VER_BUILD% /DWIN64 %TOP_LEVEL_DIR%\smplayer.nsi 101 rem %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 105 echo. 106 107 goto end 44 108 45 109 :portable … … 48 112 49 113 set /P SMPLAYER_VER="SMPlayer Version: " 50 if "%SMPLAYER_VER%"=="" exit 51 echo. 114 if "%SMPLAYER_VER%"=="" goto end 115 echo. 116 117 :: Check for portable exes 118 if not exist %PORTABLE_EXE_DIR%\smplayer-portable.exe ( 119 echo SMPlayer portable EXE not found! 120 goto end 121 ) 122 123 if not exist %PORTABLE_EXE_DIR%\smtube-portable.exe ( 124 echo SMTube portable EXE not found! 125 goto end 126 ) 52 127 53 128 ren %SMPLAYER_DIR% smplayer-portable-%SMPLAYER_VER% 54 set SMPLAYER_DIR=%TOP_LEVEL_DIR%\smplayer-portable-%SMPLAYER_VER% 129 set SMPLAYER_PORTABLE_DIR=%TOP_LEVEL_DIR%\smplayer-portable-%SMPLAYER_VER% 130 131 if 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 ) 55 135 56 136 echo. … … 58 138 echo. 59 139 60 ren %SMPLAYER_DIR%\smplayer.exe smplayer.bak 61 ren %SMPLAYER_DIR%\mplayer\mplayer\config config.bak 140 ren %SMPLAYER_PORTABLE_DIR%\smplayer.exe smplayer.bak 141 ren %SMPLAYER_PORTABLE_DIR%\smtube.exe smtube.bak 142 ren %SMPLAYER_PORTABLE_DIR%\mplayer\mplayer\config config.bak 62 143 63 144 echo. … … 65 146 echo. 66 147 67 mkdir %SMPLAYER_ DIR%\screenshots148 mkdir %SMPLAYER_PORTABLE_DIR%\screenshots 68 149 69 150 echo. … … 71 152 echo. 72 153 73 echo [%%General]>> %SMPLAYER_ DIR%\smplayer.ini74 echo screenshot_directory=.\\screenshots>> %SMPLAYER_ DIR%\smplayer.ini75 echo.>> %SMPLAYER_ DIR%\smplayer.ini76 echo [advanced]>> %SMPLAYER_ DIR%\smplayer.ini77 echo mplayer_additional_options=-nofontconfig>> %SMPLAYER_ DIR%\smplayer.ini154 echo [%%General]>> %SMPLAYER_PORTABLE_DIR%\smplayer.ini 155 echo screenshot_directory=.\\screenshots>> %SMPLAYER_PORTABLE_DIR%\smplayer.ini 156 echo.>> %SMPLAYER_PORTABLE_DIR%\smplayer.ini 157 echo [advanced]>> %SMPLAYER_PORTABLE_DIR%\smplayer.ini 158 echo mplayer_additional_options=-nofontconfig>> %SMPLAYER_PORTABLE_DIR%\smplayer.ini 78 159 79 160 echo. … … 81 162 echo. 82 163 83 echo [%%General]>> %SMPLAYER_ DIR%\smplayer_orig.ini84 echo screenshot_directory=.\\screenshots>> %SMPLAYER_ DIR%\smplayer_orig.ini85 echo.>> %SMPLAYER_ DIR%\smplayer_orig.ini86 echo [advanced]>> %SMPLAYER_ DIR%\smplayer_orig.ini87 echo mplayer_additional_options=-nofontconfig>> %SMPLAYER_ DIR%\smplayer_orig.ini164 echo [%%General]>> %SMPLAYER_PORTABLE_DIR%\smplayer_orig.ini 165 echo screenshot_directory=.\\screenshots>> %SMPLAYER_PORTABLE_DIR%\smplayer_orig.ini 166 echo.>> %SMPLAYER_PORTABLE_DIR%\smplayer_orig.ini 167 echo [advanced]>> %SMPLAYER_PORTABLE_DIR%\smplayer_orig.ini 168 echo mplayer_additional_options=-nofontconfig>> %SMPLAYER_PORTABLE_DIR%\smplayer_orig.ini 88 169 89 170 echo. … … 91 172 echo. 92 173 93 echo ## MPlayer Windows configuration>> %SMPLAYER_ DIR%\mplayer\mplayer\config94 echo.>> %SMPLAYER_ DIR%\mplayer\mplayer\config95 echo subfont=c:\windows\fonts\arial.ttf>> %SMPLAYER_ DIR%\mplayer\mplayer\config96 echo ^<cachedir^>../fontconfig^</cachedir^>> %SMPLAYER_ DIR%\mplayer\fonts\local.conf174 echo ## MPlayer Windows configuration>> %SMPLAYER_PORTABLE_DIR%\mplayer\mplayer\config 175 echo.>> %SMPLAYER_PORTABLE_DIR%\mplayer\mplayer\config 176 echo subfont=c:\windows\fonts\arial.ttf>> %SMPLAYER_PORTABLE_DIR%\mplayer\mplayer\config 177 echo ^<cachedir^>../fontconfig^</cachedir^>> %SMPLAYER_PORTABLE_DIR%\mplayer\fonts\local.conf 97 178 98 179 echo. … … 100 181 echo. 101 182 102 copy /y %PORTABLE_EXE_DIR%\smplayer-portable.exe %SMPLAYER_DIR%\smplayer.exe 183 copy /y %PORTABLE_EXE_DIR%\smplayer-portable.exe %SMPLAYER_PORTABLE_DIR%\smplayer.exe 184 copy /y %PORTABLE_EXE_DIR%\smtube-portable.exe %SMPLAYER_PORTABLE_DIR%\smtube.exe 103 185 104 186 echo. 105 187 echo ###### Creating portable package ####### 106 188 echo. 107 7za a -t7z %OUTPUT_DIR%\smplayer-portable-%SMPLAYER_VER%.7z %SMPLAYER_ DIR% -xr!*.bak -xr!qxtcore.dll -mx9189 7za a -t7z %OUTPUT_DIR%\smplayer-portable-%SMPLAYER_VER%.7z %SMPLAYER_PORTABLE_DIR% -xr!*.bak -xr!qxtcore.dll -mx9 108 190 109 191 echo. 110 192 echo Restoring source folder(s) back to its original state... 111 193 echo. 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 194 rmdir %SMPLAYER_PORTABLE_DIR%\screenshots 195 del %SMPLAYER_PORTABLE_DIR%\smplayer.ini 196 del %SMPLAYER_PORTABLE_DIR%\smplayer_orig.ini 197 del %SMPLAYER_PORTABLE_DIR%\smplayer.exe 198 del %SMPLAYER_PORTABLE_DIR%\smtube.exe 199 del %SMPLAYER_PORTABLE_DIR%\mplayer\mplayer\config 200 del %SMPLAYER_PORTABLE_DIR%\mplayer\fonts\local.conf 201 ren %SMPLAYER_PORTABLE_DIR%\smplayer.bak smplayer.exe 202 ren %SMPLAYER_PORTABLE_DIR%\smtube.bak smtube.exe 203 ren %SMPLAYER_PORTABLE_DIR%\mplayer\mplayer\config.bak config 204 ren %SMPLAYER_PORTABLE_DIR% smplayer-build 121 205 122 206 goto end … … 127 211 128 212 set /P SMPLAYER_VER="SMPlayer Version: " 129 if "%SMPLAYER_VER%"=="" exit213 if "%SMPLAYER_VER%"=="" goto end 130 214 echo. 131 215 … … 152 236 set MPLAYER_DIR=%TOP_LEVEL_DIR%\mplayer-svn-%MP_REV% 153 237 154 7za a -t7z %OUTPUT_DIR%\mplayer-svn-%MP_REV%.7z %MPLAYER_DIR% - mx9238 7za a -t7z %OUTPUT_DIR%\mplayer-svn-%MP_REV%.7z %MPLAYER_DIR% -xr!mencoder.exe -mx9 155 239 156 240 ren %MPLAYER_DIR% mplayer … … 168 252 169 253 set /P SMPLAYER_SVN="SMPlayer SVN Revision: " 170 if "%SMPLAYER_SVN%"=="" exit254 if "%SMPLAYER_SVN%"=="" goto end 171 255 172 256 7za a -t7z %OUTPUT_DIR%\smplayer_update_svn_r%SMPLAYER_SVN%.7z %SMPLAYER_DIR%\smplayer.exe %SMPLAYER_DIR%\translations -mx9 … … 177 261 178 262 set /P QTVER="Qt Version: " 179 if "%QTVER%"=="" exit263 if "%QTVER%"=="" goto end 180 264 181 265 echo.
Note:
See TracChangeset
for help on using the changeset viewer.