fix: skip process if downloaded apk not found

This commit is contained in:
Vitaly Gashkov
2025-10-25 12:03:59 +05:00
parent 50d84b208c
commit 96e77102e3
+5
View File
@@ -100,6 +100,11 @@ const extract = async ({ target = 'mobile', output, cleanup = false } = {}) => {
console.log('Downloading APK...');
const apkPath = target === 'tv' ? await downloadTvApk() : await downloadMobileApk();
if (existsSync(apkPath)) {
console.error('Unable to find APK (possibly a download error)');
return;
}
console.log('Decompiling APK...');
const decompiledDir = decompileApk(apkPath);