mirror of
https://github.com/vitalygashkov/crextractor.git
synced 2026-07-15 17:40:03 +02:00
fix: add missing import, correct manifest path
This commit is contained in:
+2
-1
@@ -1,3 +1,4 @@
|
|||||||
|
const { execSync } = require('node:child_process');
|
||||||
const { join } = require('node:path');
|
const { join } = require('node:path');
|
||||||
const { readdir, readFile, writeFile, rm } = require('node:fs/promises');
|
const { readdir, readFile, writeFile, rm } = require('node:fs/promises');
|
||||||
const { download } = require('molnia');
|
const { download } = require('molnia');
|
||||||
@@ -65,7 +66,7 @@ const extractSecrets = async ({ output, cleanup = true } = {}) => {
|
|||||||
|
|
||||||
console.log('Searching for secrets...');
|
console.log('Searching for secrets...');
|
||||||
const sourcesDir = join(decompiledDir, 'sources');
|
const sourcesDir = join(decompiledDir, 'sources');
|
||||||
const manifest = require(join(sourcesDir, 'resources', 'manifest.json'));
|
const manifest = require(join(decompiledDir, 'resources', 'manifest.json'));
|
||||||
const version = manifest.version_name;
|
const version = manifest.version_name;
|
||||||
const configurationImpl = await findConfigurationImpl(sourcesDir);
|
const configurationImpl = await findConfigurationImpl(sourcesDir);
|
||||||
if (!configurationImpl) throw new Error('Could not find ConfigurationImpl.kt');
|
if (!configurationImpl) throw new Error('Could not find ConfigurationImpl.kt');
|
||||||
|
|||||||
Reference in New Issue
Block a user