forked from eclipse-jifa/jifa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Add the jifa-jpackage.sh script to package Jifa.
issue: eclipse-jifa#313
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 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
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/ |