Issue #2851 - msi build updates for two shortcuts instead of a single launcher; added amd64 scripts
Former-commit-id:d455d71216
[formerly911c0a99c9
] [formerlya554dc8c20
] [formerlyd455d71216
[formerly911c0a99c9
] [formerlya554dc8c20
] [formerly286051cbb9
[formerlya554dc8c20
[formerly 386723d9048f6d6b6bd0281f273210949672acd2]]]] Former-commit-id:286051cbb9
Former-commit-id:718bbc47f4
[formerlyf0f10e2544
] [formerly 92b3111cb9f6f27db1c947559a4696fd1d1b0a4b [formerly6b28f08242
]] Former-commit-id: ce22ec280d942b3e0262be01d99c367f30ddd085 [formerlyf5c1cf750b
] Former-commit-id:6dc3ae2214
This commit is contained in:
parent
7df7a8e5df
commit
7cf013ef34
7 changed files with 174 additions and 13 deletions
|
@ -188,6 +188,13 @@
|
|||
excludes="cave/**" />
|
||||
|
||||
</zip>
|
||||
<!-- Update the 64-bit (amd64) win32 CAVE zip with static files -->
|
||||
<zip destfile="${buildDirectory}/${buildLabel}/${buildId}-win32.win32.x86_64.zip"
|
||||
update="true">
|
||||
|
||||
<fileset dir="${buildDirectory}/../../static/win32.amd64"
|
||||
excludes="cave/**" />
|
||||
</zip>
|
||||
</target>
|
||||
|
||||
|
||||
|
|
|
@ -197,6 +197,13 @@
|
|||
<fileset dir="${buildDirectory}/../../static/win32.x86"
|
||||
excludes="alertviz/**" />
|
||||
</zip>
|
||||
<!-- Update the 64-bit (amd64) win32 CAVE zip with static files -->
|
||||
<zip destfile="${buildDirectory}/${buildLabel}/${buildId}-win32.win32.x86_64.zip"
|
||||
update="true">
|
||||
|
||||
<fileset dir="${buildDirectory}/../../static/win32.amd64"
|
||||
excludes="alertviz/**" />
|
||||
</zip>
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
|
|
|
@ -15,4 +15,5 @@ designation.
|
|||
linux.x86 - these files will only be installed on a 32-bit Linux Operating System.
|
||||
linux.x86_64 - these files will only be installed on a 64-bit Linux Operating System.
|
||||
win32.x86 - these files will only be installed on a 32-bit MS Windows Operating System.
|
||||
win32.amd64 - these files will only be installed on a 64-bit Windows Operating System.
|
||||
macosx.x86 - these files will only be installed on a 32-bit Apple OS X Operating System.
|
65
cave/build/static/win32.amd64/alertviz/alertviz.bat
Normal file
65
cave/build/static/win32.amd64/alertviz/alertviz.bat
Normal file
|
@ -0,0 +1,65 @@
|
|||
@echo OFF
|
||||
|
||||
REM Always use the System32 (64-bit) reg.exe.
|
||||
SET REG_EXE=C:\Windows\System32\reg.exe
|
||||
|
||||
REM Determine where we are located.
|
||||
SET CONTAINING_DIRECTORY=%~dp0
|
||||
|
||||
REM Prepare the environment.
|
||||
|
||||
REM Registry Query Variables.
|
||||
SET A2_JAVA_REG="HKLM\Software\Raytheon\Runtime Environment\AWIPS II Java"
|
||||
SET A2_PYTHON_REG="HKLM\Software\Raytheon\Runtime Environment\AWIPS II Python"
|
||||
REM Determine where AWIPS II Java (the jre) is located.
|
||||
%REG_EXE% QUERY %A2_JAVA_REG% /v JavaJreDirectory > NUL 2>&1
|
||||
IF ERRORLEVEL 1 (echo ENVIRONMENT ERROR - Unable to find AWIPS II Java. && PAUSE && EXIT)
|
||||
FOR /F "tokens=2* delims= " %%A IN (
|
||||
'%REG_EXE% QUERY %A2_JAVA_REG% /v JavaJreDirectory') DO (
|
||||
SET JavaJreDirectory=%%B)
|
||||
REM Determine where AWIPS II Python is located.
|
||||
%REG_EXE% QUERY %A2_PYTHON_REG% /v PythonInstallDirectory > NUL 2>&1
|
||||
IF ERRORLEVEL 1 (echo ENVIRONMENT ERROR - Unable to find AWIPS II Python. && PAUSE && EXIT)
|
||||
FOR /F "tokens=2* delims= " %%A IN (
|
||||
'%REG_EXE% QUERY %A2_PYTHON_REG% /v PythonInstallDirectory') DO (
|
||||
SET PythonInstallDirectory=%%B)
|
||||
|
||||
REM Add Java and Python to the path.
|
||||
SET Path=%PythonInstallDirectory%;%PythonInstallDirectory%\DLLs;%Path%
|
||||
SET Path=%JavaJreDirectory%\bin;%Path%
|
||||
REM Define 'PythonPath'.
|
||||
SET PythonPath=%PythonInstallDirectory%\Lib\lib-tk;%PythonPath%
|
||||
SET PythonPath=%PythonInstallDirectory%\DLLs;%PythonPath%
|
||||
SET PythonPath=%PythonInstallDirectory%\Lib;%PythonPath%
|
||||
SET PythonPath=%PythonInstallDirectory%;%PythonPath%
|
||||
|
||||
REM Eliminate variables that will no longer be used.
|
||||
SET PythonInstallDirectory=
|
||||
SET JavaJreDirectory=
|
||||
SET REG_EXE=
|
||||
SET A2_JAVA_REG=
|
||||
SET A2_PYTHON_REG=
|
||||
|
||||
REM Determine where we will be logging to.
|
||||
SET HOME_DIRECTORY=%HOMEDRIVE%%HOMEPATH%
|
||||
SET CAVEDATA_LOG_DIRECTORY=%HOMEDRIVE%%HOMEPATH%\caveData\logs
|
||||
SET CONSOLE_LOG_DIRECTORY=%CAVEDATA_LOG_DIRECTORY%\consoleLogs\%COMPUTERNAME%
|
||||
IF NOT EXIST "%CONSOLE_LOG_DIRECTORY%" (MKDIR "%CONSOLE_LOG_DIRECTORY%")
|
||||
|
||||
echo Starting ALERTVIZ; leave this CMD window open to enable AlertViz 'restart'.
|
||||
REM Start AlertViz (and implement the alertviz restart capability).
|
||||
:AlertVizLoopStart
|
||||
SET RND=%random%
|
||||
SET RND_DATETIME_FILE=%TMP%\awips2dt_%RND%.tmp
|
||||
REM Python is used to retrieve the current date and time because the order
|
||||
REM of the Windows date/time fields is not necessarily guaranteed and the
|
||||
REM Windows date/time fields can only be extracted using substring operations
|
||||
REM instead of -formatter- strings like Linux allows.
|
||||
python -c "from datetime import datetime; print datetime.now().strftime('%%Y%%m%%d_%%H%%M%%S');" > %RND_DATETIME_FILE%
|
||||
SET /p LOG_DATETIME= < %RND_DATETIME_FILE%
|
||||
DEL %RND_DATETIME_FILE%
|
||||
"%CONTAINING_DIRECTORY%alertviz.exe" %* > "%CONSOLE_LOG_DIRECTORY%\alertviz_%LOG_DATETIME%.log" 2>&1
|
||||
IF %ERRORLEVEL% == 0 (EXIT)
|
||||
echo Restarting AlertViz.
|
||||
GOTO AlertVizLoopStart
|
||||
|
68
cave/build/static/win32.amd64/cave/cave.bat
Normal file
68
cave/build/static/win32.amd64/cave/cave.bat
Normal file
|
@ -0,0 +1,68 @@
|
|||
@echo OFF
|
||||
|
||||
REM Always use the System32 (64-bit) reg.exe.
|
||||
SET REG_EXE=C:\Windows\System32\reg.exe
|
||||
|
||||
REM Determine where we are located.
|
||||
SET CONTAINING_DIRECTORY=%~dp0
|
||||
|
||||
REM Prepare the environment.
|
||||
|
||||
REM Registry Query Variables.
|
||||
SET A2_JAVA_REG="HKLM\Software\Raytheon\Runtime Environment\AWIPS II Java"
|
||||
SET A2_PYTHON_REG="HKLM\Software\Raytheon\Runtime Environment\AWIPS II Python"
|
||||
REM Determine where AWIPS II Java (the jre) is located.
|
||||
%REG_EXE% QUERY %A2_JAVA_REG% /v JavaJreDirectory > NUL 2>&1
|
||||
IF ERRORLEVEL 1 (echo ENVIRONMENT ERROR - Unable to find AWIPS II Java. && PAUSE && EXIT)
|
||||
FOR /F "tokens=2* delims= " %%A IN (
|
||||
'%REG_EXE% QUERY %A2_JAVA_REG% /v JavaJreDirectory') DO (
|
||||
SET JavaJreDirectory=%%B)
|
||||
REM Determine where AWIPS II Python is located.
|
||||
%REG_EXE% QUERY %A2_PYTHON_REG% /v PythonInstallDirectory > NUL 2>&1
|
||||
IF ERRORLEVEL 1 (echo ENVIRONMENT ERROR - Unable to find AWIPS II Python. && PAUSE && EXIT)
|
||||
FOR /F "tokens=2* delims= " %%A IN (
|
||||
'%REG_EXE% QUERY %A2_PYTHON_REG% /v PythonInstallDirectory') DO (
|
||||
SET PythonInstallDirectory=%%B)
|
||||
|
||||
REM Add Java and Python to the path.
|
||||
SET Path=%PythonInstallDirectory%;%PythonInstallDirectory%\DLLs;%Path%
|
||||
SET Path=%JavaJreDirectory%\bin;%Path%
|
||||
REM Add the CAVE lib directory to the path.
|
||||
SET Path=%CONTAINING_DIRECTORY%lib;%Path%
|
||||
REM Define 'PythonPath'.
|
||||
SET PythonPath=%CONTAINING_DIRECTORY%lib;%PythonPath%
|
||||
SET PythonPath=%PythonInstallDirectory%\Lib\lib-tk;%PythonPath%
|
||||
SET PythonPath=%PythonInstallDirectory%\DLLs;%PythonPath%
|
||||
SET PythonPath=%PythonInstallDirectory%\Lib;%PythonPath%
|
||||
SET PythonPath=%PythonInstallDirectory%;%PythonPath%
|
||||
|
||||
REM Eliminate variables that will no longer be used.
|
||||
SET PythonInstallDirectory=
|
||||
SET JavaJreDirectory=
|
||||
SET REG_EXE=
|
||||
SET A2_JAVA_REG=
|
||||
SET A2_PYTHON_REG=
|
||||
|
||||
REM Determine where we will be logging to.
|
||||
SET HOME_DIRECTORY=%HOMEDRIVE%%HOMEPATH%
|
||||
SET CAVEDATA_LOG_DIRECTORY=%HOMEDRIVE%%HOMEPATH%\caveData\logs
|
||||
SET CONSOLE_LOG_DIRECTORY=%CAVEDATA_LOG_DIRECTORY%\consoleLogs\%COMPUTERNAME%
|
||||
IF NOT EXIST "%CONSOLE_LOG_DIRECTORY%" (MKDIR "%CONSOLE_LOG_DIRECTORY%")
|
||||
|
||||
SET RND=%random%
|
||||
SET RND_DATETIME_FILE=%TMP%\awips2dt_%RND%.tmp
|
||||
REM Python is used to retrieve the current date and time because the order
|
||||
REM of the Windows date/time fields is not necessarily guaranteed and the
|
||||
REM Windows date/time fields can only be extracted using substring operations
|
||||
REM instead of -formatter- strings like Linux allows.
|
||||
python -c "from datetime import datetime; print datetime.now().strftime('%%Y%%m%%d_%%H%%M%%S');" > %RND_DATETIME_FILE%
|
||||
SET /p LOG_DATETIME= < %RND_DATETIME_FILE%
|
||||
DEL %RND_DATETIME_FILE%
|
||||
|
||||
echo THIS CMD WINDOW CAN BE CLOSED AT ANY TIME!
|
||||
cd %HOMEPATH%
|
||||
REM Start CAVE.
|
||||
"%CONTAINING_DIRECTORY%cave.exe" %* > "%CONSOLE_LOG_DIRECTORY%\cave_%LOG_DATETIME%.log" 2>&1
|
||||
IF ERRORLEVEL 1 (echo CAVE ERROR - check the logs for additional information. && PAUSE)
|
||||
|
||||
EXIT
|
|
@ -24,14 +24,30 @@
|
|||
<Directory Id="ProgramFilesFolder" Name="PFiles">
|
||||
<Directory Id="INSTALLDIR" Name="Raytheon">
|
||||
<Directory Id="AwipsII" Name="AWIPS II">
|
||||
<Component Id="VizLauncherExe" Guid="8924277C-5B6A-4EEB-AE9F-5471481F92A6">
|
||||
<File Id="VizLauncherExe" Name="VizLauncher.exe"
|
||||
DiskId="1" Source="SourceDir\VizLauncher.exe" />
|
||||
<Shortcut Id="vizLauncherDesktopShortcut" Directory="DesktopFolder" Name="Viz Launcher"
|
||||
WorkingDirectory="SourceDir" Advertise="yes" Icon="cave.exe" IconIndex="0" />
|
||||
<Shortcut Id="vizLauncherStartMenu" Directory="ProgramMenuDir" Name="Viz Launcher"
|
||||
WorkingDirectory="SourceDir" Advertise="yes" Icon="cave.exe" IconIndex="0" />
|
||||
<Directory Id="CaveDir" Name="CAVE">
|
||||
<Component Id="caveBatch" Guid="8924277C-5B6A-4EEB-AE9F-5471481F92A6">
|
||||
<File Id="caveBAT" Name="cave.bat"
|
||||
DiskId="1" Source="SourceDir\CAVE\cave.bat" />
|
||||
<Shortcut Id="caveDesktopShortcut" Directory="DesktopFolder" Name="CAVE"
|
||||
WorkingDirectory="CaveDir" Advertise="yes" Icon="cave.exe" IconIndex="0"
|
||||
Arguments="-component thinclient" />
|
||||
<Shortcut Id="caveStartMenu" Directory="ProgramMenuDir" Name="CAVE"
|
||||
WorkingDirectory="CaveDir" Advertise="yes" Icon="cave.exe" IconIndex="0"
|
||||
Arguments="-component thinclient" />
|
||||
</Component>
|
||||
</Directory>
|
||||
<Directory Id="AlertvizDir" Name="AlertViz">
|
||||
<Component Id="alertvizBatch" Guid="8924277C-5B6A-4EEB-AE9F-5471481F92B4">
|
||||
<File Id="alertvizBAT" Name="alertviz.bat"
|
||||
DiskId="1" Source="SourceDir\AlertViz\alertviz.bat" />
|
||||
<Shortcut Id="alertvizDesktopShortcut" Directory="DesktopFolder" Name="AlertViz"
|
||||
WorkingDirectory="AlertvizDir" Advertise="yes" Icon="alertviz.exe" IconIndex="0"
|
||||
Arguments="-component thinalertviz" />
|
||||
<Shortcut Id="alertvizStartMenu" Directory="ProgramMenuDir" Name="AlertViz"
|
||||
WorkingDirectory="AlertvizDir" Advertise="yes" Icon="alertviz.exe" IconIndex="0"
|
||||
Arguments="-component thinalertviz" />
|
||||
</Component>
|
||||
</Directory>
|
||||
</Directory>
|
||||
</Directory>
|
||||
|
||||
|
@ -55,6 +71,7 @@
|
|||
<Feature Id="AWIPS_II_CAVE" Title="AWIPS II CAVE" Level="1"
|
||||
Display="expand" Description="AWIPS II Common AWIPS Visualization Environment (CAVE)"
|
||||
ConfigurableDirectory="INSTALLDIR">
|
||||
<ComponentRef Id="caveBatch" />
|
||||
<ComponentRef Id="ProgramMenuDir" />
|
||||
|
||||
<ComponentGroupRef Id="AWIPSII_CAVE" />
|
||||
|
@ -63,20 +80,16 @@
|
|||
<Feature Id="AWIPS_II_ALERTVIZ" Title="AWIPS II AlertViz" Level="1"
|
||||
Display="expand" Description="AWIPS II AlertViz"
|
||||
ConfigurableDirectory="INSTALLDIR">
|
||||
<ComponentRef Id="alertvizBatch" />
|
||||
|
||||
<ComponentGroupRef Id="AWIPSII_ALERTVIZ" />
|
||||
</Feature>
|
||||
|
||||
<Feature Id="AWIPS_II_LAUNCHER" Title="AWIPS II Viz Launcher" Level="1"
|
||||
Display="expand" Description="Viz Launcher - Starts both AlertViz and CAVE"
|
||||
ConfigurableDirectory="INSTALLDIR">
|
||||
<ComponentRef Id="VizLauncherExe" />
|
||||
</Feature>
|
||||
|
||||
<UIRef Id="WixUI_FeatureTree" />
|
||||
<UIRef Id="WixUI_ErrorProgressText" />
|
||||
|
||||
<Icon Id="cave.exe" SourceFile="SourceDir\CAVE\cave.exe" />
|
||||
<Icon Id="alertviz.exe" SourceFile="SourceDir\AlertViz\alertviz.exe" />
|
||||
|
||||
</Product>
|
||||
</Wix>
|
||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue