加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build-post.bat 1.39 KB
一键复制 编辑 原始数据 按行查看 历史
johnluicn 提交于 2019-08-17 16:25 . chore:adjust build-post.bat
@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%\*"
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化