Skip to content

Commit

Permalink
Align artifact name with what GraalVM CE generates in its releases
Browse files Browse the repository at this point in the history
Closes: #452
  • Loading branch information
zakkak committed Dec 19, 2024
1 parent 148e035 commit 8c9b0dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.java
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public static void main(String... args) throws IOException
if (options.archiveSuffix != null)
{
int javaMajor = Runtime.version().feature();
String archiveName = "mandrel-java" + javaMajor + "-" + PLATFORM + "-" + mandrelVersionUntilSpace + "." + options.archiveSuffix;
String archiveName = "mandrel-java" + javaMajor + "-" + PLATFORM.replace("darwin", "macos") + "-" + mandrelVersionUntilSpace + "." + options.archiveSuffix;
logger.info("Creating Archive " + archiveName);
createArchive(fs, os, mandrelHome, archiveName);
}
Expand Down
3 changes: 2 additions & 1 deletion jenkins/jobs/builds/Constants.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ class Constants {
mv ${JAVA_HOME}/lib/static/darwin-arm64 ${JAVA_HOME}/lib/static/darwin-aarch64
fi
./jenkins/jobs/scripts/mandrel_linux_build.sh
# We align to what GraalVM CE calls its releases:
# We align to what GraalVM CE calls its releases
# this is no longer needed as of mandrel-packaging 24.2, but we keep it for backwards compatibility:
for m in mandrel-*.tar.gz*;do n=$(echo $m | sed 's/darwin-aarch64/macos-aarch64/g'); mv $m $n;done
find .
'''
Expand Down

0 comments on commit 8c9b0dc

Please sign in to comment.