mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-10-06 07:01:29 +00:00
Fix AOT again [release]
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user