Fix AOT again [release]

This commit is contained in:
crschnick committed 2026-09-04 15:02:38 +00:00
1 parent 35d9966ac9
commit b9e8f35634
3 files changed
+8 -20

No files matched your search

@@ -8,15 +8,6 @@ import io.xpipe.app.util.ThreadHelper;
public class AppAotTrain {
public static boolean isSupported() {
// The x86_64 runners seem to have weird issues
if (OsType.ofLocal() == OsType.MACOS && AppProperties.get().getArch().equals("amd64")) {
return false;
}
return true;
}
public static void runTrainingMode() throws Throwable {
// Linux runners don't support graphics
if (OsType.ofLocal() == OsType.LINUX) {
@@ -199,15 +199,11 @@ public abstract class AppOperationMode {
try {
if (AppProperties.get().isAotTrainMode()) {
if (AppAotTrain.isSupported()) {
AppOperationMode.switchToSyncOrThrow(BACKGROUND);
inStartup = false;
AppAotTrain.runTrainingMode();
AppOperationMode.shutdown(false);
return;
} else {
AppOperationMode.halt(0);
}
AppOperationMode.switchToSyncOrThrow(BACKGROUND);
inStartup = false;
AppAotTrain.runTrainingMode();
AppOperationMode.shutdown(false);
return;
}
var startupMode = getStartupMode();