<commit_before>@echo on

set J11_HOME=%1
set J14_HOME=%2

set APP_VERSION=%3
set APP_NAME=%4
set APP_DESCRIPTION=%5
set APP_VENDOR=%6
set APP_MAIN_JAR=%7
set APP_MAIN_CLASS=%8
set IMAGE_TYPE=%9

REM https://stackoverflow.com/questions/8328338/how-do-you-utilize-more-than-9-arguments-when-calling-a-label-in-a-cmd-batch-scr%
REM Shift arguments after 9
shift
set BUILD_DIR=%9
shift
set INPUT=%9
shift
set OUTPUT=%9
shift
set APP_ICON=%9
shift
set JVM_ARGS=%9

call %J11_HOME%\bin\jlink.exe --no-header-files --no-man-pages --compress=2 --strip-debug --add-modules ALL-MODULE-PATH --output %BUILD_DIR%\java-runtime
REM call "%J11_HOME%\bin\jlink" --no-header-files --no-man-pages --compress=2 --strip-debug --add-modules java.base,java.desktop,java.sql,java.logging,jdk.unsupported,java.xml,java.prefs,javafx.base,javafx.controls,javafx.graphics,javafx.swing --output %BUILD_DIR%\java-runtime

call %J14_HOME%\bin\jpackage.exe ^
  --app-version %APP_VERSION% ^
  --name %APP_NAME% ^
  --description %APP_DESCRIPTION% ^
  --vendor %APP_VENDOR% ^
  --main-jar %APP_MAIN_JAR% ^
  --main-class %APP_MAIN_CLASS% ^
  --type %IMAGE_TYPE% ^
  --input %INPUT% ^
  --dest %OUTPUT% ^
  --java-options %JVM_ARGS% ^
  --icon %APP_ICON% ^
  --runtime-image %BUILD_DIR%\java-runtime ^
  --win-shortcut --win-menu ^
  --verbose

REM call "%J14_HOME%\bin\jpackage.exe" ^
REM   --type exe ^
REM   --app-version %VERSION% ^
REM   --input %INPUT% ^
REM   --name "pdf-map" ^
REM   --description "PDF Mapping tool" ^
REM   --vendor "iTo" ^<commit_msg>Trigger win per user<commit_after>@echo on

set J11_HOME=%1
set J14_HOME=%2

set APP_VERSION=%3
set APP_NAME=%4
set APP_DESCRIPTION=%5
set APP_VENDOR=%6
set APP_MAIN_JAR=%7
set APP_MAIN_CLASS=%8
set IMAGE_TYPE=%9

REM https://stackoverflow.com/questions/8328338/how-do-you-utilize-more-than-9-arguments-when-calling-a-label-in-a-cmd-batch-scr%
REM Shift arguments after 9
shift
set BUILD_DIR=%9
shift
set INPUT=%9
shift
set OUTPUT=%9
shift
set APP_ICON=%9
shift
set JVM_ARGS=%9

call %J11_HOME%\bin\jlink.exe --no-header-files --no-man-pages --compress=2 --strip-debug --add-modules ALL-MODULE-PATH --output %BUILD_DIR%\java-runtime
REM call "%J11_HOME%\bin\jlink" --no-header-files --no-man-pages --compress=2 --strip-debug --add-modules java.base,java.desktop,java.sql,java.logging,jdk.unsupported,java.xml,java.prefs,javafx.base,javafx.controls,javafx.graphics,javafx.swing --output %BUILD_DIR%\java-runtime

call %J14_HOME%\bin\jpackage.exe ^
  --app-version %APP_VERSION% ^
  --name %APP_NAME% ^
  --description %APP_DESCRIPTION% ^
  --vendor %APP_VENDOR% ^
  --main-jar %APP_MAIN_JAR% ^
  --main-class %APP_MAIN_CLASS% ^
  --type %IMAGE_TYPE% ^
  --input %INPUT% ^
  --dest %OUTPUT% ^
  --java-options %JVM_ARGS% ^
  --icon %APP_ICON% ^
  --runtime-image %BUILD_DIR%\java-runtime ^
  --win-shortcut --win-menu --win-per-user-install ^
  --verbose

REM call "%J14_HOME%\bin\jpackage.exe" ^
REM   --type exe ^
REM   --app-version %VERSION% ^
REM   --input %INPUT% ^
REM   --name "pdf-map" ^
REM   --description "PDF Mapping tool" ^
REM   --vendor "iTo" ^
{'fraction_non_alphanumeric': 0.16753078418664938, 'fraction_numerical': 0.023979261179520414, 'mean_word_length': 3.749230769230769, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5095412', 'n_tokens_mistral': 1270, 'n_tokens_neox': 1197, 'n_words': 234}