代码拉取完成,页面将自动刷新
@echo off
set ProjName=%~1
set ProjVersion=%~2
set Platform=%~3
set ConfigName=%~4
set BuildTargetDir=%~5
set BuildDateTime=%~t5
if "%Platform%"=="x64" (set BuildExtName="-%Platform%") else (set BuildExtName="")
set ZipBinFile=%SYSTEMDRIVE%\Program Files\7-Zip\7z.exe
set str=%ProjName%
:next
if not "%str%"=="" (
if "%str:~-1%"=="_" goto last
set "str=%str:~0,-1%"
goto next
)
:last
set "ProjGroup=%str:~0,-1%"
set PkgDir=%DevPkgsDir%\%ProjGroup%
set PkgFile=%ProjName%-%ProjVersion%-%BuildDateTime:~0,4%%BuildDateTime:~5,2%%BuildDateTime:~8,2%.win
if "%Platform%"=="x64" (set PkgFile=%PkgFile%.x86_64)
set PkgFile=%PkgFile%.zip
set InstallDir=%DevCompileDir%\%ProjName%\%Platform%%ConfigName%\install
if "%ConfigName%"=="Release" (if exist "%InstallDir%" (del /Q "%InstallDir%"))
xcopy /Y "%BuildTargetDir%%ProjName%.exe" "%InstallDir%\"
xcopy /Y "%DevLibsDir%\pthread\dll\%Platform%\pthreadVC2.dll" "%InstallDir%\"
xcopy /Y "%DevLibsDir%\openssl\1.1.1b\%Platform%\bin\libcrypto-1_1%BuildExtName%.dll" "%InstallDir%\"
xcopy /Y "%DevLibsDir%\libcx\1.0\bin\%Platform%%ConfigName%\libcx%BuildExtName%.dll" "%InstallDir%\"
xcopy /Y "%DevLibsDir%\itscp\3.0\bin\%Platform%%ConfigName%\itscp3c%BuildExtName%.dll" "%InstallDir%\"
if "%ConfigName%"=="Release" (
if not exist "%PkgDir%" (mkdir "%PkgDir%")
if exist "%PkgDir%\%PkgFile%" (del /Q "%PkgDir%\%PkgFile%")
"%ZipBinFile%" a -mx5 -r "%PkgDir%\%PkgFile%" "%InstallDir%\*"
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。