Skip to content

Commit

Permalink
build: Add the jifa-jpackage.sh script to package Jifa.
Browse files Browse the repository at this point in the history
  • Loading branch information
youngledo committed Feb 4, 2025
1 parent f335e9c commit 5e3a8a0
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions jifa-jpackage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
./gradlew clean build -x test

echo "Packaging Eclipse Jifa ..."

# Path of the input directory that contains the files to be packaged (absolute path or relative to the current directory)
# All files in the input directory will be packaged into the application image.
inputPath="server/build/libs"
destinationPath="server/build/distributions"

osName=$(uname -s)
arch=$(uname -m)
packageName="eclipse jifa-${osName}-${arch}"

# For "jpackage", please refer to: https://docs.oracle.com/en/java/javase/17/jpackage/packaging-overview.html#GUID-C1027043-587D-418D-8188-EF8F44A4C06A
jpackage --name "${packageName}" \
--vendor "Eclipse" \
--app-version 1.0.0 \
--description "Eclipse Jifa (abbreviated as Jifa) stands for \"Java Issues Finding Assistant\". Online Analyzer for Heap Dump, GC Log, Thread Dump and JFR File." \
--input "${inputPath}" \
--dest "${destinationPath}" \
--main-jar jifa.jar \
--java-options --add-opens=java.base/java.lang=ALL-UNNAMED \
--java-options --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED \
--java-options -Djdk.util.zip.disableZip64ExtraFieldValidation=true \
--java-options -Djifa.role=standalone-worker \
--java-options -Djifa.open-browser-when-ready=true \
--about-url https://eclipse-jifa.github.io/jifa/

0 comments on commit 5e3a8a0

Please sign in to comment.