Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
7b56655
Revert "Prepare development of 0.0.66"
jperedadnr Mar 19, 2025
bf60e36
Revert "New release: 0.0.65"
jperedadnr Mar 19, 2025
0b2de41
Revert "Add filter check to macOS (#1301)"
jperedadnr Mar 19, 2025
43b743d
Revert "add zip extension (#1305)"
jperedadnr Mar 19, 2025
f1bc9d1
Revert "Increase timeout for codesign process (#1303)"
jperedadnr Mar 19, 2025
0ca2ba4
Revert "Bump gradle wrapper version (#1299)"
jperedadnr Mar 19, 2025
6076c6f
Revert "Bump JDK version (#1293)"
jperedadnr Mar 19, 2025
67cbb39
Revert "Add new path for provisioning profiles starting Xcode 16 (#12…
jperedadnr Mar 19, 2025
a18ace4
Revert "Prepare development of 0.0.65"
jperedadnr Mar 19, 2025
d4858b7
Revert "New release: 0.0.64"
jperedadnr Mar 19, 2025
0d1fcd4
Revert "Migrate to publish-plugin (#1287)"
jperedadnr Mar 19, 2025
704acef
Revert "Add warnings on Windows and Linux AArch64 (#1279)"
jperedadnr Mar 19, 2025
b455c62
Revert "Bump static JDK version (#1282)"
jperedadnr Mar 19, 2025
3526bef
Revert "checks for static lib (#1278)"
jperedadnr Mar 19, 2025
8796278
Revert "Set macOS min version in plist (#1275)"
jperedadnr Mar 19, 2025
25b0ea6
Revert "macOS fixes (#1274)"
jperedadnr Mar 19, 2025
e8bbb47
Revert "Update Substrate to use latest GraalVM (JDK 23) and JavaFX 24…
jperedadnr Mar 19, 2025
572e3a9
Set macOS min version in plist (#1275)
jperedadnr Sep 8, 2024
ae67596
Migrate to publish-plugin (#1287)
abhinayagarwal Sep 18, 2024
3969300
Add new path for provisioning profiles starting Xcode 16
jperedadnr Oct 18, 2024
248ff82
Bump gradle wrapper version (#1299)
jperedadnr Nov 15, 2024
aa413f6
Increase timeout for codesign process (#1303)
jperedadnr Jan 16, 2025
2bae1cc
add zip extension (#1305)
jperedadnr Jan 16, 2025
32a5403
Add filter check to macOS (#1301)
jperedadnr Jan 17, 2025
fe3e4c1
Prepare development of 0.0.66
gluon-bot Jan 17, 2025
aaf0aa9
Update action
jperedadnr Mar 19, 2025
dfc8681
update build job
jperedadnr Mar 19, 2025
236b90c
Use supported GraalVM
jperedadnr Mar 19, 2025
b5b1b74
Add arch
jperedadnr Mar 19, 2025
0a6c14c
bump JavaFX version for tests
jperedadnr Mar 19, 2025
a52c73c
bump JavaFX plugin version for tests
jperedadnr Mar 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,23 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest] # windows-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- os: ubuntu-latest
ARCH: "x86_64"
- os: macos-latest
ARCH: "aarch64"
# - os: windows-latest
# ARCH: "x86_64"
- os: windows-latest
ARCH: "x86_64"

steps:
- name: Install packages (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install at-spi2-core build-essential libgtk-3-dev libxtst-dev libavcodec-dev libavformat-dev libasound2-dev libgl-dev

- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Add msbuild to PATH (Windows)
if: runner.os == 'Windows'
Expand All @@ -42,7 +43,8 @@ jobs:
- name: Setup Gluon's GraalVM
uses: gluonhq/setup-graalvm@master
with:
jdk: 'java23'
graalvm: '22.1.0.1-Final'
jdk: 'java17'
arch: ${{ matrix.ARCH }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -52,13 +54,13 @@ jobs:
run: sudo xcrun simctl shutdown all && sudo xcrun simctl erase all

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v3
- name: Setup Java 11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
java-version: 11

- name: Grant execute permission for gradlew
run: chmod +x gradlew
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
fetch-depth: 5
persist-credentials: false

- name: Setup Java
uses: actions/setup-java@v3
- name: Setup Java 11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
java-version: 11

- name: Grant execute permission for gradlew
run: chmod +x gradlew
Expand Down
43 changes: 10 additions & 33 deletions src/main/java/com/gluonhq/substrate/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
package com.gluonhq.substrate;

import java.nio.file.Path;
import java.util.Locale;

public class Constants {

Expand Down Expand Up @@ -74,34 +73,7 @@ public enum Profile {
IOS_SIM, // (x86_64-apple-ios)
ANDROID, // (aarch64-linux-android);
WEB // (x86_64-web-web)
}

public enum VMONE_TARGET {
X86_64_LINUX_LINUX("linux-x64"),
AARCH64_LINUX_LINUX("linux-aarch64"),
X86_64_APPLE_DARWIN("macos-x64"),
AARCH64_APPLE_DARWIN("macos-aarch64"),
X86_64_MICROSOFT_WINDOWS("windows-x64"),
AARCH64_MICROSOFT_WINDOWS("windows-aarch64"),
ARM64_APPLE_IOS("ios-macos-aarch64"),
X86_64_APPLE_IOS("ios-macos-x64"),
AARCH64_LINUX_ANDROID("android-linux-aarch64"),
X86_64_WEB_WEB("no-op");

private final String target;

VMONE_TARGET(String target) {
this.target = target;
}

public String getTarget() {
return target;
}

public static VMONE_TARGET fromTriplet(String triplet) {
return valueOf(triplet.toUpperCase(Locale.ROOT).replaceAll("-", "_"));
}
}
};

/**
* Supported hosts
Expand Down Expand Up @@ -134,16 +106,20 @@ public static VMONE_TARGET fromTriplet(String triplet) {
public static final String PROFILE_LINUX_AARCH64 = "linux-aarch64";
public static final String PROFILE_WEB = "web";

public static final String DEFAULT_JAVA_STATIC_SDK_VERSION = "24-2.1";
public static final String DEFAULT_JAVAFX_STATIC_SDK_VERSION = "24-ea+7.1";
public static final String DEFAULT_JAVA_STATIC_SDK_VERSION = "18-ea+prep18-9";
public static final String DEFAULT_JAVA_STATIC_SDK_VERSION11 = "11-ea+10";
public static final String DEFAULT_JAVAFX_STATIC_SDK_VERSION = "21-ea+11.2";
public static final String DEFAULT_JAVAFX_JS_SDK_VERSION = "18-internal+0-2021-09-02-165800";
public static final String DEFAULT_SYSROOT_VERSION = "20210424";
public static final String DEFAULT_CLIBS_VERSION = "27";
public static final String DEFAULT_JAVASDK_PATH = "staticjdk";
public static final String DEFAULT_JAVASDK_PATH11 = "labs-staticjdk";

/**
* Supported GraalVM versions
*/
public static final String GRAALVM_MIN_VERSION = "23";
public static final String GRAALVM_JAVA_MIN_VERSION = "21.0";
public static final String GRAALVM_MIN_VERSION = "22.1";
public static final String GRAALVM_JAVA_MIN_VERSION = "11.0";

/**
* Paths
Expand Down Expand Up @@ -215,6 +191,7 @@ public static VMONE_TARGET fromTriplet(String triplet) {
public static final String RESOURCE_ARCH_FILE = "resourceconfig-${archOs}.json";

public static final String JNI_JAVA_FILE = "jniconfig-java.json";
public static final String JNI_JAVA_FILE11 = "jniconfig-java11.json";
public static final String JNI_JAVAFXSW_FILE = "jniconfig-javafxsw.json";
public static final String JNI_ARCH_FILE = "jniconfig-${archOs}.json";

Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/gluonhq/substrate/SubstrateDispatcher.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2024, Gluon
* Copyright (c) 2019, 2023, Gluon
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -326,11 +326,11 @@ private static void executeRunStep(SubstrateDispatcher dispatcher) {
if (expected != null) {
Logger.logInfo(logTitle("RUN TASK (with expected)"));

List<String> responses = dispatcher.targetConfiguration.run();
if (responses.contains(expected)) {
String response = dispatcher.targetConfiguration.run();
if (expected.equals(response)) {
Logger.logInfo("Run ended successfully, the output: " + expected + " matched the expected result.");
} else {
Logger.logSevere("Run failed, expected output: " + expected + ", output: " + responses);
Logger.logSevere("Run failed, expected output: " + expected + ", output: " + response);
System.exit(1);
}
} else {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2024, Gluon
* Copyright (c) 2019, 2023, Gluon
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -163,7 +163,9 @@ public Version getGraalVersion() {
*/
public String getJavaStaticSdkVersion() {
return Optional.ofNullable(publicConfig.getJavaStaticSdkVersion())
.orElse(Constants.DEFAULT_JAVA_STATIC_SDK_VERSION);
.orElse(usesJDK11() ?
Constants.DEFAULT_JAVA_STATIC_SDK_VERSION11 :
Constants.DEFAULT_JAVA_STATIC_SDK_VERSION);
}

/**
Expand Down Expand Up @@ -209,11 +211,12 @@ public Path getDefaultJavaStaticPath() {
return Constants.USER_SUBSTRATE_PATH
.resolve("javaStaticSdk")
.resolve(getJavaStaticSdkVersion())
.resolve(getTargetTriplet().getOsArch());
.resolve(getTargetTriplet().getOsArch())
.resolve(usesJDK11() ? Constants.DEFAULT_JAVASDK_PATH11 : Constants.DEFAULT_JAVASDK_PATH);
}

private Path getDefaultJavaStaticLibsPath() {
return getDefaultJavaStaticPath().resolve("lib");
return getDefaultJavaStaticPath().resolve("lib").resolve("static");
}

/**
Expand Down
30 changes: 29 additions & 1 deletion src/main/java/com/gluonhq/substrate/model/Triplet.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2024, Gluon
* Copyright (c) 2019, 2022, Gluon
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -218,6 +218,34 @@ public String getOsArch2() {
return this.os+"-"+myarch;
}

/**
*
* On iOS/iOS-sim, Android and Linux-AArch64, it returns a string
* with a valid version for clibs, for other OSes returns an empty string
* @return
*/
public String getClibsVersion() {
if (OS_IOS.equals(getOs()) || OS_ANDROID.equals(getOs()) ||
(OS_LINUX.equals(getOs()) && ARCH_AARCH64.equals(getArch()))) {
return "-ea+" + Constants.DEFAULT_CLIBS_VERSION;
}
return "";
}
/**
*
* On iOS/iOS-sim, Android and Linux-AArch64, it returns a string
* with a valid path for clibs, for other OSes returns an empty string
*
* @return
*/
public String getClibsVersionPath() {
if (OS_IOS.equals(getOs()) || OS_ANDROID.equals(getOs()) ||
(OS_LINUX.equals(getOs()) && ARCH_AARCH64.equals(getArch()))) {
return Constants.DEFAULT_CLIBS_VERSION;
}
return "";
}

@Override
public String toString() {
return arch + '-' + vendor + '-' + os;
Expand Down
Loading
Loading