Gluon Mobile 是否支持交叉编译?

Does Gluon Mobile support cross compilation?

我知道 Gluon 使用 GraalVM Native Image 功能来创建本机可执行包。但是……我需要知道的是:

在 Linux 中部署 Windows “.exe” 包怎么样,可能吗?

如果您选中 documentation 客户端插件,则需要满足一些先决条件才能创建原生图像。

到目前为止,可能的本机图像目标需要以下主机:

  • Linux:目标 Linux(x86_64 桌面)和 Android (aarch64)。嵌入式支持仍处于试验阶段。

  • Windows:目标 Windows(x86_64 桌面)。可选的 WSL 2(Windows Linux 的子系统)可用于定位 Linux/Android.

  • MacOS X 10:目标 Mac(x86_64 桌面)和 iOS(arm64)。

对于每个主机,您需要一个特定的 GraalVM 构建。

查看不同的 samples, and the tutorials (like this 一)以了解有关每种情况的更多信息。