warning for persistence

This commit is contained in:
KingKDot
2026-03-10 17:22:39 -05:00
parent 49583849f5
commit 9c43b647e8
2 changed files with 19 additions and 3 deletions
+12
View File
@@ -194,6 +194,18 @@ form?.addEventListener("submit", async (e) => {
noPrinting,
};
const hasAndroid = platforms.some(p => p.startsWith('android-'));
if (hasAndroid && enablePersistence) {
if (!confirm(
'⚠️ WARNING: Persistence is NOT supported on Android\n\n' +
'The persistence setting will be ignored for Android builds.\n' +
'Persistence is only supported on: Windows, Linux, and macOS\n\n' +
'Continue with build anyway?'
)) {
return;
}
}
await startBuild(buildConfig);
});