Skip to content

Commit

Permalink
Switched launchers
Browse files Browse the repository at this point in the history
  • Loading branch information
smals-mavh committed Nov 19, 2024
1 parent f7f4bc8 commit 9643aae
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rest-guide-validator-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Package Windows Installer
run: |
jlink --add-modules java.base,java.naming,java.xml,java.desktop --output ./target/custom-jre --strip-debug --no-header-files --no-man-pages --verbose
jpackage --input ./target --name belgif-validate-openapi --main-jar belgif-rest-guide-validator-cli-$env:RELEASED_VERSION.jar --type msi --app-version $env:RELEASED_VERSION --description "Validate OpenApi to Belgif guidelines" --vendor "Belgif" --icon ./package/belgif.ico --win-console --resource-dir "./package/windows" --runtime-image ./target/custom-jre --dest ./target --install-dir belgif-rest-guide-validator --add-launcher launch-belgif-rest-guide-validator="./package/clickable-launcher.properties" --win-per-user-install --verbose
jpackage --input ./target --name launch-belgif-rest-guide-validator --main-jar belgif-rest-guide-validator-cli-$env:RELEASED_VERSION.jar --type msi --app-version $env:RELEASED_VERSION --description "Validate OpenApi to Belgif guidelines" --vendor "Belgif" --icon ./package/belgif.ico --win-console --resource-dir "./package/windows" --runtime-image ./target/custom-jre --dest ./target --install-dir belgif-rest-guide-validator --file-associations package\file-associations\FAyaml.properties --file-associations package\file-associations\FAjson.properties --add-launcher belgif-validate-openapi="./package/cli-launcher.properties" --win-per-user-install --verbose
ren target\belgif-validate-openapi-$env:RELEASED_VERSION.msi belgif-rest-guide-validator-$env:RELEASED_VERSION.msi
- id: upload-windows-installer
name: Upload Windows Installer
Expand Down
2 changes: 1 addition & 1 deletion cli/buildinfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ jlink --add-modules java.base,java.naming,java.xml,java.desktop --output custom-

To build the installer with a custom JRE (for windows) use:
```bash
jpackage --input . --name belgif-validate-openapi --main-jar belgif-rest-guide-validator-cli-latest.jar --type msi --app-version 2.2.0 --description "Validate OpenApi to Belgif guidelines" --vendor "Belgif" --icon ../package/belgif.ico --win-console --resource-dir "../package/windows" --runtime-image custom-jre --install-dir belgif-rest-guide-validator --add-launcher launch-belgif-rest-guide-validator="../package/clickable-launcher.properties" --win-per-user-install
jpackage --input . --name launch-belgif-rest-guide-validator --main-jar belgif-rest-guide-validator-cli-latest.jar --type msi --app-version 2.2.0 --description "Validate OpenApi to Belgif guidelines" --vendor "Belgif" --icon ../package/belgif.ico --win-console --resource-dir "../package/windows" --runtime-image custom-jre --install-dir belgif-rest-guide-validator --file-associations ..\package\file-associations\FAyaml.properties --file-associations ..\package\file-associations\FAjson.properties --add-launcher belgif-validate-openapi="../package/cli-launcher.properties" --win-per-user-install
```
1 change: 1 addition & 0 deletions cli/package/cli-launcher.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main-class=io.github.belgif.rest.guide.validator.cli.BelgifRestGuideCli
2 changes: 0 additions & 2 deletions cli/package/clickable-launcher.properties

This file was deleted.

2 changes: 1 addition & 1 deletion cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>libs</classpathPrefix>
<mainClass>io.github.belgif.rest.guide.validator.cli.BelgifRestGuideCli</mainClass>
<mainClass>io.github.belgif.rest.guide.validator.cli.BelgifRestGuideValidator</mainClass>
</manifest>
</archive>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private void printPostInstall() {
log.info("belgif-rest-guide-validator-{} successfully installed!", VersionProvider.getValidatorVersion());
log.info("\nUse command: 'belgif-validate-openapi' followed by a file name or path to start.");
log.info("Use 'belgif-validate-openapi --help' for all options.");
log.info("\nRight click on an openapi or swagger file and open with 'Validate OpenApi according to Belgif guidelines'");
log.info("\nRight click on an openapi or swagger file and open with 'Validate OpenApi to Belgif guidelines'");
log.info("In some cases you'll have to set this up manually by selecting 'Choose another app' -> 'Choose an app on your PC' -> navigate to belgif-rest-guide-validator folder in C:\\Users\\user-name\\AppData\\Local\\ -> 'launch-belgif-rest-guide-validator.exe'");
log.info("\n\n========================");
log.info("\nPress Enter to exit...");
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ For all options use:
belgif-validate-openapi --help
```

You could also right-click on an openapi or swagger file and open with: 'Validate OpenApi according to Belgif guidelines'
You could also right-click on an openapi or swagger file and open with: 'Validate OpenApi to Belgif guidelines'
In some cases you'll have to set this up manually by selecting 'Choose another app' -> 'Choose an app on your PC' -> navigate to belgif-rest-guide-validator folder in C:\Users\user-name\AppData\Local\ -> 'launch-belgif-rest-guide-validator.exe'

## Building
Expand Down

0 comments on commit 9643aae

Please sign in to comment.