Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build / Fix folder name in release script #8464

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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