forked from eclipse-jifa/jifa
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjifa-jpackage.bat
More file actions
47 lines (40 loc) · 1.71 KB
/
jifa-jpackage.bat
File metadata and controls
47 lines (40 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
@echo off
REM Copyright (c) 2025 Contributors to the Eclipse Foundation
REM
REM See the NOTICE file(s) distributed with this work for additional
REM information regarding copyright ownership.
REM
REM This program and the accompanying materials are made available under the
REM terms of the Eclipse Public License 2.0 which is available at
REM http://www.eclipse.org/legal/epl-2.0
REM
REM SPDX-License-Identifier: EPL-2.0
call gradlew.bat clean build -x test
set inputPath=server\build\libs
set destinationPath=server\build\distributions
set name=Eclipse Jifa
set version=1.0.0
set iconPath=package\windows\launcher.ico
echo Packaging %name%...
REM For "jpackage", please refer to: https://docs.oracle.com/en/java/javase/17/jpackage/packaging-overview.html#GUID-C1027043-587D-418D-8188-EF8F44A4C06A
call jpackage --name "%name%" ^
--vendor "Eclipse" ^
--app-version "%version%" ^
--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/ ^
--icon "%iconPath%" ^
--verbose ^
--win-menu ^
--win-shortcut ^
if %error level% neq 0 (
exit /b 1
)
echo Completed!