From 828f4fa1d59e6e415936c229ff93cc8a3e864182 Mon Sep 17 00:00:00 2001 From: Vitaly Gashkov Date: Sat, 25 Oct 2025 12:13:35 +0500 Subject: [PATCH] fix: correct checking for downloaded apk --- crextractor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crextractor.js b/crextractor.js index 7e2de97..41a1736 100644 --- a/crextractor.js +++ b/crextractor.js @@ -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; }