Add Apple MAS variation

pull/377/head
Mikael Finstad 2020-05-17 17:51:59 +08:00
rodzic b051b3875d
commit 8db770d5ac
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -1336,6 +1336,13 @@ const App = memo(() => {
const firstFile = filePaths[0];
// Because Apple is being nazi about the ability to open "copy protected DVD files"
const disallowVob = isMasBuild;
if (disallowVob && /\.vob$/i.test(firstFile)) {
toast.fire({ icon: 'error', text: 'Unfortunately .vob files are not supported in the App Store version of LosslessCut due to Apple restrictions' });
return;
}
const { newCustomOutDir, cancel } = await assureOutDirAccess(firstFile);
if (cancel) return;