add warnings
This commit is contained in:
@@ -195,6 +195,28 @@ form?.addEventListener("submit", async (e) => {
|
||||
};
|
||||
|
||||
const hasAndroid = platforms.some(p => p.startsWith('android-'));
|
||||
const hasBsd = platforms.some(
|
||||
p => p.startsWith('freebsd-') || p.startsWith('openbsd-'),
|
||||
);
|
||||
|
||||
if (hasAndroid || hasBsd) {
|
||||
let warningText = 'WARNING: Some selected targets are severely untested and will probably not work right.\n\n';
|
||||
|
||||
if (hasAndroid) {
|
||||
warningText += '- Android targets are severely untested and will probably not work right.\n';
|
||||
}
|
||||
|
||||
if (hasBsd) {
|
||||
warningText += '- BSD targets are severely untested and will probably not work right.\n';
|
||||
}
|
||||
|
||||
warningText += '\nContinue with build anyway?';
|
||||
|
||||
if (!confirm(warningText)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (hasAndroid && enablePersistence) {
|
||||
if (!confirm(
|
||||
'⚠️ WARNING: Persistence is NOT supported on Android\n\n' +
|
||||
|
||||
@@ -167,6 +167,27 @@ export async function startBuildProcess(
|
||||
throw new Error("One or more requested platforms are not allowed");
|
||||
}
|
||||
|
||||
const hasAndroidTargets = platformsToBuild.some((p) => p.startsWith("android-"));
|
||||
const hasBsdTargets = platformsToBuild.some(
|
||||
(p) => p.startsWith("freebsd-") || p.startsWith("openbsd-"),
|
||||
);
|
||||
|
||||
if (hasAndroidTargets) {
|
||||
sendToStream({
|
||||
type: "output",
|
||||
text: "WARNING: Android targets are severely untested and will probably not work right.\n",
|
||||
level: "warn",
|
||||
});
|
||||
}
|
||||
|
||||
if (hasBsdTargets) {
|
||||
sendToStream({
|
||||
type: "output",
|
||||
text: "WARNING: BSD targets are severely untested and will probably not work right.\n",
|
||||
level: "warn",
|
||||
});
|
||||
}
|
||||
|
||||
const ndkBin = resolveAndroidNdkToolchainBin();
|
||||
if (!ndkBin && platformsToBuild.some((p) => p.startsWith("android-"))) {
|
||||
sendToStream({
|
||||
|
||||
Reference in New Issue
Block a user