fix: correct checking for downloaded apk

This commit is contained in:
Vitaly Gashkov
2025-10-25 12:13:35 +05:00
parent 8275aff35e
commit 828f4fa1d5
+1 -1
View File
@@ -100,7 +100,7 @@ const extract = async ({ target = 'mobile', output, cleanup = false } = {}) => {
console.log('Downloading APK...');
const apkPath = target === 'tv' ? await downloadTvApk() : await downloadMobileApk();
if (existsSync(apkPath)) {
if (!existsSync(apkPath)) {
console.error('Unable to find APK (possibly a download error)');
return;
}