Changeset 154 for smplayer/vendor/current/setup/scripts
- Timestamp:
- Feb 21, 2014, 4:44:11 PM (11 years ago)
- 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 6 6 echo. 7 7 8 set /P QTVER="Qt Version (Default: 4. 7.4): "9 if "%QTVER%"=="" set QTVER=4. 7.48 set /P QTVER="Qt Version (Default: 4.8.4): " 9 if "%QTVER%"=="" set QTVER=4.8.4 10 10 11 11 set OUTPUT_DIR=smplayer-build … … 16 16 set SMPLAYER_SKINS_DIR=svn\smplayer-skins 17 17 set MPLAYER_DIR=mplayer 18 set QT_DIR=C:\QtSDK\Desktop\Qt\%QTVER%\mingw 18 rem set QT_DIR=C:\QtSDK\Desktop\Qt\%QTVER%\mingw 19 set QT_DIR=C:\Qt\%QTVER% 19 20 20 21 echo. … … 32 33 copy %QT_DIR%\bin\QtNetwork4.dll %OUTPUT_DIR% 33 34 copy %QT_DIR%\bin\QtXml4.dll %OUTPUT_DIR% 35 copy %QT_DIR%\bin\QtScript4.dll %OUTPUT_DIR% 34 36 copy %QT_DIR%\bin\mingwm10.dll %OUTPUT_DIR% 35 37 if %QTVER% geq 4.6.0 ( -
smplayer/vendor/current/setup/scripts/make_pkgs.cmd
r140 r154 57 57 echo --- Creating SMPlayer NSIS Packages --- 58 58 echo. 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 59 echo Format: VER_MAJOR.VER_MINOR.VER_BUILD[.VER_REVISION] 60 echo VER_REVISION is optional (set to 0 if blank) 63 61 echo. 64 62 65 63 :: Reset in case ran again in same command prompt instance 64 set NSIS_PKG_VER= 66 65 set VER_MAJOR= 67 66 set VER_MINOR= 68 67 set VER_BUILD= 69 68 set 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 69 set VER_REV_CMD= 70 71 :nsispkgver_again 72 Set /p NSIS_PKG_VER="Version: " 73 74 for /f "tokens=1 delims=." %%j in ("%NSIS_PKG_VER%") do set VER_MAJOR=%%j 75 for /f "tokens=2 delims=." %%k in ("%NSIS_PKG_VER%") do set VER_MINOR=%%k 76 for /f "tokens=3 delims=." %%l in ("%NSIS_PKG_VER%") do set VER_BUILD=%%l 77 for /f "tokens=4 delims=." %%m in ("%NSIS_PKG_VER%") do set VER_REVISION=%%m 78 79 if [%VER_MAJOR%]==[] ( 80 echo Major Version # must be specified [#.x.x] 81 echo. 82 goto nsispkgver_again 83 ) 84 85 if [%VER_MINOR%]==[] ( 86 echo Minor Version # must be specified [x.#.x] 87 echo. 88 goto nsispkgver_again 89 ) 90 91 if [%VER_BUILD%]==[] ( 92 echo Build Version # must be specified [x.x.#] 93 echo. 94 goto nsispkgver_again 95 ) 96 97 if [%VER_REVISION%]==[] ( 98 set VER_REV_CMD= 84 99 ) 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 103 if 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 107 if 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 ) 93 110 94 111 goto end … … 122 139 123 140 echo. 124 echo ###### Backing up files #######141 echo Backing up files... 125 142 echo. 126 143 … … 130 147 131 148 echo. 132 echo ###### Create screenshots dir. #######149 echo Creating screenshots dir... 133 150 echo. 134 151 … … 136 153 137 154 echo. 138 echo ###### Create mplayer config ####### 139 echo. 140 141 echo ## MPlayer Windows configuration>> %SMPLAYER_PORTABLE_DIR%\mplayer\mplayer\config 155 echo Creating smplayer.ini... 156 echo. 157 158 echo [%%General]> %SMPLAYER_PORTABLE_DIR%\smplayer.ini 159 echo screenshot_directory=.\\screenshots>> %SMPLAYER_PORTABLE_DIR%\smplayer.ini 160 echo.>> %SMPLAYER_PORTABLE_DIR%\smplayer.ini 161 echo [advanced]>> %SMPLAYER_PORTABLE_DIR%\smplayer.ini 162 echo mplayer_additional_options=-nofontconfig>> %SMPLAYER_PORTABLE_DIR%\smplayer.ini 163 164 echo. 165 echo Creating smplayer_orig.ini... 166 echo. 167 168 echo [%%General]> %SMPLAYER_PORTABLE_DIR%\smplayer_orig.ini 169 echo screenshot_directory=.\\screenshots>> %SMPLAYER_PORTABLE_DIR%\smplayer_orig.ini 170 echo.>> %SMPLAYER_PORTABLE_DIR%\smplayer_orig.ini 171 echo [advanced]>> %SMPLAYER_PORTABLE_DIR%\smplayer_orig.ini 172 echo mplayer_additional_options=-nofontconfig>> %SMPLAYER_PORTABLE_DIR%\smplayer_orig.ini 173 174 echo. 175 echo Creating mplayer config... 176 echo. 177 178 echo ## MPlayer Windows configuration> %SMPLAYER_PORTABLE_DIR%\mplayer\mplayer\config 142 179 echo.>> %SMPLAYER_PORTABLE_DIR%\mplayer\mplayer\config 143 180 echo subfont=c:\windows\fonts\arial.ttf>> %SMPLAYER_PORTABLE_DIR%\mplayer\mplayer\config … … 145 182 146 183 echo. 147 echo ###### Copying portable .exe #######184 echo Copying portable .exe... 148 185 echo. 149 186 … … 152 189 153 190 echo. 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 - mx9191 echo Finalizing portable package... 192 echo. 193 7za a -t7z %OUTPUT_DIR%\smplayer-portable-%SMPLAYER_VER%.7z %SMPLAYER_PORTABLE_DIR% -xr!*.bak -xr!qxtcore.dll -xr!mplayer64.exe -mx9 157 194 158 195 echo.
Note:
See TracChangeset
for help on using the changeset viewer.