Skip to content

Commit

Permalink
Build / Fix folder name in release script
Browse files Browse the repository at this point in the history
  • Loading branch information
fxprunayre authored Oct 24, 2024
1 parent 573d4be commit 7f747fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions release-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ mvn clean install -DskipTests -ntp -Pwar -Pwro4j-prebuild-cache
# generate checksum for download artifacts
if [ -f "release/target/GeoNetwork-$version/geonetwork-bundle-$newversion.zip.MD5" ]; then
rm release/target/GeoNetwork-$version/geonetwork-bundle-$newversion.zip.MD5
if [ -f "release/target/GeoNetwork-$mainVersion/geonetwork-bundle-$newversion.zip.MD5" ]; then
rm release/target/GeoNetwork-$mainVersion/geonetwork-bundle-$newversion.zip.MD5
fi
if [[ ${OSTYPE:0:6} == 'darwin' ]]; then
md5 -r web/target/geonetwork.war > web/target/geonetwork.war.md5
md5 -r release/target/GeoNetwork-$nextVersionNumber/geonetwork-bundle-$newversion.zip > release/target/GeoNetwork-$nextVersionNumber/geonetwork-bundle-$newversion.zip.md5
md5 -r release/target/GeoNetwork-$mainVersion/geonetwork-bundle-$newversion.zip > release/target/GeoNetwork-$nextVersionNumber/geonetwork-bundle-$newversion.zip.md5
else
(cd web/target && md5sum geonetwork.war > geonetwork.war.md5)
(cd release/target/GeoNetwork-$nextVersionNumber && md5sum geonetwork-bundle-$newversion.zip > geonetwork-bundle-$newversion.zip.md5)
(cd release/target/GeoNetwork-$mainVersion && md5sum geonetwork-bundle-$newversion.zip > geonetwork-bundle-$newversion.zip.md5)
fi

0 comments on commit 7f747fc

Please sign in to comment.