Skip to content

Commit

Permalink
choir: bump javafx versions
Browse files Browse the repository at this point in the history
  • Loading branch information
lart2150 committed Sep 7, 2024
1 parent e234863 commit 7160052
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ jobs:
- name: Install Dependencies
if: steps.javafx-cache.outputs.cache-hit != 'true'
run: |
curl -o javafx.zip https://download2.gluonhq.com/openjfx/21.0.1/openjfx-21.0.1_linux-x64_bin-sdk.zip
curl -o javafx.zip https://download2.gluonhq.com/openjfx/21.0.4/openjfx-21.0.4_linux-x64_bin-sdk.zip
unzip javafx.zip
- name: Build with Ant
run: |
sed -i.bak 's/<property name="fxlib" value=".*"\/>/<property name="fxlib" value="javafx-sdk-21.0.1\/lib"\/>/g' build.xml
sed -i.bak 's/<property name="fxlib" value=".*"\/>/<property name="fxlib" value="javafx-sdk-21.0.4\/lib"\/>/g' build.xml
ant -noinput -buildfile build.xml
- uses: actions/upload-artifact@v3
with:
Expand Down
5 changes: 2 additions & 3 deletions src/com/tivo/kmttg/gui/JavaFX.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,9 @@ private static boolean downloadJavaFX(File currentJar) throws IOException {
String zipName = currentJar.getParent() + "/openfx-sdk.zip";
String downloadLink = "";
if (getJreMajorVersion() < 17) {
downloadLink = "https://download2.gluonhq.com/openjfx/19.0.2.1/openjfx-19.0.2.1_" +downloadOs+ "-" + arch + "_bin-sdk.zip";
downloadLink = "https://download2.gluonhq.com/openjfx/17.0.12/openjfx-17.0.12_" +downloadOs+ "-" + arch + "_bin-sdk.zip";
} else {
//https://download2.gluonhq.com/openjfx/20.0.2/openjfx-20.0.2_windows-x64_bin-sdk.zip
downloadLink = "https://download2.gluonhq.com/openjfx/20.0.2/openjfx-20.0.2_" +downloadOs+ "-" + arch + "_bin-sdk.zip";
downloadLink = "https://download2.gluonhq.com/openjfx/21.0.4/openjfx-21.0.4_" +downloadOs+ "-" + arch + "_bin-sdk.zip";
}
String zipFile = update.downloadUrl(zipName, downloadLink);
if (zipFile != null) {
Expand Down

0 comments on commit 7160052

Please sign in to comment.