Windows环境下,一般使用Jenkins部署自动化打包。
1.安装包
2. 安装包说明
(1)InstallShield 2010 Premier setup.exe
EXE制作软件InstallShield安装包
(2)InstallShield 2010 Premier Patch.exe
InstallShield软件授权解密工具
(3)ISWIBuild.dll.zip
解决命令行调用InstallShield打包,提示授权过期的问题,替换掉相应的库即可解决问题
(4)jdk-11.0.9_windows-x64_bin.exe
JDK安装包
(5)jenkins.msi
Jenkins安装包,要与JDK兼容
3.自动化打包脚本
set VSDevenvPath="C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"
set IShieldPath="C:\Program Files (x86)\InstallShield\2010\System"
set PackagePath=D:\打包\
set SourceCode=代码路径
set SourcePackage=ISM打包路径set ExePath=%PackagePath%\wscript2.exe
set VbsPath=%PackagePath%\setProject.vbstaskkill /IM isdev.exe
set InstallPath=%SourcePackage%
set ReleaseType="Release_SoftEncypt|Win32"
set SourceType=Release_SoftEncyptset InstallProject="%InstallPath%\DocEditor.ism"
set DocEditorSetupPath="%InstallPath%\Media\Release 2"
set SourceFile="%InstallPath%\Source Files"
set VersionInfo=%DocEditor_Version%_%date:~0,4%%date:~5,2%%date:~8,2%cd /d %SourceCode%
svn update
cd /d %PackagePath%call %PackagePath%\buildVSproject.bat %VSDevenvPath% %SourceCode% %ReleaseType%
xcopy %SourceCode%\%SourceType%\*.dll %SourceFile% /s /e /d /y
xcopy %SourceCode%\%SourceType%\*.exe %SourceFile% /s /e /d /ycall %PackagePath%\setproject.bat %ExePath% %VbsPath% %InstallProject% %VersionInfo%
%IShieldPath%\ISCmdBld.exe -p %InstallProject% -b %DocEditorSetupPath% -c COMPif %ClearHistory% == true (del /s/q "%WORKSPACE%\SetupFile")
copy %DocEditorSetupPath%\Package\DocEditorSetup.exe "%WORKSPACE%\SetupFile\DocEditorSetup_%VersionInfo%.exe" /y
限于篇幅,有些细节无法详说,大家有问题可以联系本人。