mirror of
https://github.com/vitalygashkov/crextractor.git
synced 2026-07-15 17:40:03 +02:00
fix: skip process if downloaded apk not found
This commit is contained in:
@@ -100,6 +100,11 @@ const extract = async ({ target = 'mobile', output, cleanup = false } = {}) => {
|
|||||||
console.log('Downloading APK...');
|
console.log('Downloading APK...');
|
||||||
const apkPath = target === 'tv' ? await downloadTvApk() : await downloadMobileApk();
|
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...');
|
console.log('Decompiling APK...');
|
||||||
const decompiledDir = decompileApk(apkPath);
|
const decompiledDir = decompileApk(apkPath);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user