QT bat脚本:
rd /q /s dist
mkdir dist
qmake.exe helloworld.pro -spec win32-g++ "CONFIG+=qtquickcompiler" -o dist\
cd dist
mingw32-make -f Makefile.Release
cd ..
xcopy dist\release\hellowrold.exe nsis\ps\ /y
VC bat脚本:
echo off
set PATH=%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE
SET PATH=%PATH%;C:\Program Files (x86)\Windows Kits\8.1\bin\x64\
SET PATH=%PATH%;C:\Program Files (x86)\NSIS
。。。
devenv.exe "..\solution\HelloWorld.sln" /Rebuild "Release|x86"
。。。
制作安装盘,调用nsis脚本
makensis /DPRODUCT_NAME="%PRODUCT_NAME%" /DEXE_NAME=%EXE_NAME% /DICONFILE=%ICONFILE% /DPRODUCT_VERSION=%PRODUCT_VERSION% /DPRODUCT_PUBLISHER=%PRODUCT_PUBLISHER% /DPRODUCT_WEB_SITE=%PRODUCT_WEB_SITE% /DINSTALL_DIR=%INSTALL_DIR% /DURL_NAME=%URL_NAME% /DINSTALL_NAME=%INSTALL_NAME% package.nsi