Add icns format icon for macOS #23
This file contains hidden or 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
| name: Build RTR-NetztestCLI-linux-x64 (without testing) | |
| on: [push] | |
| jobs: | |
| build-linux-x64: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: set up JDK 1.21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'corretto' | |
| - name: Build with Gradle | |
| run: | | |
| ./gradlew :RMBTClient:shadowJar -x test | |
| - name: Archive files | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: RTR-NetztestCLI-jar | |
| path: | | |
| RMBTClient/build/libs/*-all.jar | |
| retention-days: 90 | |
| - name: Build jpackage | |
| run: | | |
| cp RMBTClient/icon/rtr-netztest.ico RMBTClient/build | |
| cd RMBTClient/build/ | |
| ls * | |
| latest_tag=$(git describe --tags --abbrev=0) | |
| echo "Latest tag: $latest_tag" | |
| jpackage --input libs --name "RTR-Netztest" --icon rtr-netztest.ico --main-jar RMBTClient-all.jar --main-class at.rtr.rmbt.client.RMBTClientRunner --type app-image --app-version "$latest_tag" --vendor "RTR" --verbose --arguments --log --description "RTR-Netztest - RMBTClient engine" | |
| ls * | |
| zip -r RTR-NetztestCLI-linux-x64.zip RTR-Netztest | |
| - name: Archive files | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: RTR-NetztestCLI-linux-x64 | |
| path: | | |
| RMBTClient/build/RTR-Netztest/* | |
| retention-days: 90 | |
| - name: Intermediate file check | |
| run: | | |
| cd RMBTClient/build/ | |
| ls -l * | |
| - name: Release | |
| uses: softprops/action-gh-release@v2 | |
| if: github.ref_type == 'tag' | |
| with: | |
| files: | |
| RMBTClient/build/RTR-NetztestCLI-linux-x64.zip |