Parcourir la source

AMBARI-4525 - Fix Ambari MSI build process

tbeerbower il y a 11 ans
Parent
commit
aeb36c36e4
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      contrib/ambari-scom/msi/build.cmd

+ 5 - 1
contrib/ambari-scom/msi/build.cmd

@@ -36,8 +36,12 @@ echo Building MSI
 pushd "%cd%\src" || exit /b 1
 start /wait /min candle "%cd%\ambari-scom.wxs"  || exit /b 1
 start /wait /min light "%cd%\ambari-scom.wixobj"  || exit /b 1
+if not exist "%cd%\ambari-scom.msi" (
+echo MSI build failed
+exit /b 1
+)
 popd || exit /b 1
-copy /y "..\management-pack\Hadoop_MP\Installer\bin\Debug\en-us\AmbariSCOMManagementPack.msi" "%cd%\ambari-scom.msi" || exit /b 1
+copy /y "..\management-pack\Hadoop_MP\Installer\bin\Debug\en-us\AmbariSCOMManagementPack.msi" "%cd%\ambari-scom-mp.msi" || exit /b 1
 
 echo Cleaning 
 del /f /q "%cd%\src\ambari-scom.wixobj"  || exit /b 1