Extract app package from iOS simulator or Android emulator. You must check 2 things before running the command.
- Simulator or emulator should be running
- The package file(.app or .apk) should be already installed
$ npm install extract-pkg -g # or --save-dev$ extract-pkg # or --help, display usageIf did not add --to or -d, the command will use same path where command executed.
$ extract-pkg ios --id=com.some.pkgIf did not add --rename or -n, the command will be using same as original package file name.
$ extract-pkg android --id=com.some.pkg --rename=app-debug.apk{
"ios": {
"id": "com.awesome.ios",
"to": "/path/to"
},
"android": {
"id": "com.awesome.android",
"to": "/path/to"
}
}$ extract-pkg android --config=/path/to/config.jsonor,
module.exports = {
ios: {
id: 'com.awesome.ios',
to: '/path/to'
},
android: {
id: 'com.awesome.android',
to: '/path/to'
}
}$ extract-pkg ios --config=/path/to/config.jsHowever, if you use —id with —config, even id value in JSON file exist, it will be ignored.
$ extract-pkg android --config=/path/to/config.json --id=com.use.thisMIT