mirror of
https://github.com/vitalygashkov/crextractor.git
synced 2026-07-15 17:40:03 +02:00
feat: support Android TV app
This commit is contained in:
+23
-2
@@ -1,5 +1,26 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
const { extractSecrets } = require('../crextractor');
|
||||
const { parseArgs } = require('node:util');
|
||||
const { extract } = require('../crextractor');
|
||||
|
||||
extractSecrets({ output: 'secrets.json' });
|
||||
const args = parseArgs({
|
||||
options: {
|
||||
target: {
|
||||
type: 'string',
|
||||
default: 'tv',
|
||||
},
|
||||
output: {
|
||||
type: 'string',
|
||||
},
|
||||
cleanup: {
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
extract({
|
||||
target: args.values.target,
|
||||
output: args.values.output ?? (args.values.target === 'tv' ? 'credentials.tv.json' : 'credentials.mobile.json'),
|
||||
cleanup: args.values.cleanup,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user