-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating patch build process and adding to release deployment.
Adjusted update bat script to clear dropins, lib, and pull patch from updated location. Added installer build instructions to README files.
- Loading branch information
1 parent
70f8821
commit 82d1ce3
Showing
5 changed files
with
207 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,59 @@ | ||
# WRIMS-GUI: The zipped distribuition builder for WRIMS-GUI | ||
Given the outstanding limitations of the current Eclipse Luna (does not support build-ship), | ||
NOTE: Given the outstanding limitations of the current Eclipse Luna (does not support build-ship), | ||
This gradle module uses an existing template copy of the WRIMS-GUI project to build a distributable zip file | ||
with the latest updated dropin jars and configuration file required to enable them. | ||
|
||
## How to build the installer/patch zip files | ||
The installer can be built by running the "zipWrimsGui" task in the wrims-gui module. | ||
The patch can be built by running the "zipWrimsPatch" task in the wrims-gui module. | ||
|
||
The generated wrims install zip file will be located in the /wrims-gui/build/installer | ||
folder. The installer file will be named: wrims_gui_x64_<branch-name>.zip | ||
|
||
The generated wrims patch zip file will be located in the /wrims-gui/build/patch | ||
folder. The patch file will be named: wrims_patch_v2.2.0_basis.zip | ||
|
||
### From developer linux terminal: | ||
You can build the installer and patch by running the following linux command from the root of the project: | ||
``` | ||
./gradlew :wrims-gui:zipWrimsGui | ||
./gradlew :wrims-gui:zipWrimsPatch | ||
``` | ||
|
||
### From developer windows command line / terminal: | ||
You can build the installer and patch by running the following command from the root of the project: | ||
``` | ||
gradlew.bat :wrims-gui:zipWrimsGui | ||
gradlew.bat :wrims-gui:zipWrimsPatch | ||
``` | ||
|
||
### From GitHub Releases | ||
The installer and patch zip files are automatically generated when a new "Release" is created from | ||
the github wrims site (https://github.com/CentralValleyModeling/wrims). | ||
|
||
1. From the github wrims home page (https://github.com/CentralValleyModeling/wrims/) click the "Releases" | ||
link on the right hand side. Direct link: https://github.com/CentralValleyModeling/wrims/releases | ||
|
||
2. From the Releases page, select "Draft a new release" button at the top of the page. | ||
Direct link: https://github.com/CentralValleyModeling/wrims/releases/new | ||
|
||
3. Click the "Choose a tag" drop down and type in a new tag name in the "Find or create new tag" field. | ||
For an internal release, use a date stamp in the format of "YYYYMMDD" (e.g. 20241224). | ||
|
||
4. Click the "Target" branch drop down and select the branch you'd like to build the installer from. | ||
|
||
5. Click "Generate release notes" to automatically pull PR change logs into the release notes. | ||
|
||
6. Enter a title in the "Release Title" field. Typically, this matches the tag name. | ||
|
||
7. (OPTIONAL) Add any additional notes to the Description field | ||
|
||
8. If this is a non-production ready release, check the "Set as a pre-release" checkbox. | ||
|
||
9. Click "Publish Release" | ||
|
||
The installer and patch zip will be automatically generated and added to the new Release. | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
wrims-gui/src/main/resources/installer/WRIMS2_GUI_Update_and_Start.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
@echo off | ||
if "%~n0%~x0" == "WRIMS2_GUI_Update_and_Start.bat" ( | ||
copy WRIMS2_GUI_Update_and_Start.bat WRIMS2_GUI_Update_and_Start_tmp.bat > update.log | ||
start /B WRIMS2_GUI_Update_and_Start_tmp.bat | ||
Exit | ||
) | ||
echo Reset tmp directory... | ||
if not exist "C:\tmp\" mkdir C:\tmp | ||
if exist "C:\tmp\releasedate.log" del C:\tmp\releasedate.log > update.log | ||
if exist "C:\tmp\wrims_patch_v2.2.0_basis.zip" del C:\tmp\wrims_patch_v2.2.0_basis.zip > update.log | ||
if exist "C:\tmp\wrims_patch_v2.2.0_basis" ( | ||
del /S /Q C:\tmp\wrims_patch_v2.2.0_basis\*.* > update.log | ||
rmdir /S /Q C:\tmp\wrims_patch_v2.2.0_basis > update.log | ||
) | ||
|
||
echo Download the patch release date... | ||
curl\bin\curl https://data.cnra.ca.gov/dataset/0f6b03b4-7de8-4579-8aa0-60f73d9d21fb/resource/23861121-d916-4442-94e0-1d5309c44762/download/releasedate_v2.2.0_basis.log -L --insecure -o C:\tmp\releasedate.log | ||
echo Compare with the local release date... | ||
FC C:\tmp\releasedate.log releasedate.log> nul | ||
if %errorlevel% EQU 1 ( | ||
echo Download Update Patch... | ||
curl\bin\curl https://data.cnra.ca.gov/dataset/0f6b03b4-7de8-4579-8aa0-60f73d9d21fb/resource/e58abe5c-005f-4f3f-9bed-87e03b4ee4f6/download/wrims_patch_v2.2.0_basis.zip -L --insecure -o C:\tmp\wrims_patch_v2.2.0_basis.zip | ||
echo Clear the old dropins and libs directories | ||
del /S /Q dropins\*.* > update.log | ||
del /S /Q lib\*.* > update.log | ||
echo Unzip the Patch and Update... | ||
powershell -command "Expand-Archive C:\tmp\wrims_patch_v2.2.0_basis.zip c:\tmp\wrims_patch_v2.2.0_basis" | ||
xcopy /S /E /Y C:\tmp\wrims_patch_v2.2.0_basis . > update.log | ||
) | ||
echo Start WRIMS 2 GUI | ||
start WRIMS2_GUI_Start | ||
Exit | ||
|