forked from github/cordova-android
CB-13530: This fixes the basic APK installation
This commit is contained in:
parent
39e6765e64
commit
5502ddaf0d
@ -106,10 +106,14 @@ function apkSorter (fileA, fileB) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function findOutputApksHelper (dir, build_type, arch) {
|
function findOutputApksHelper (dir, build_type, arch) {
|
||||||
|
console.log("Directory: " + dir);
|
||||||
|
console.log("Build Type: " + build_type);
|
||||||
|
console.log("Arch: " + arch);
|
||||||
|
|
||||||
var shellSilent = shell.config.silent;
|
var shellSilent = shell.config.silent;
|
||||||
shell.config.silent = true;
|
shell.config.silent = true;
|
||||||
|
|
||||||
var ret = shell.ls(path.join(dir, '*.apk')).filter(function (candidate) {
|
var ret = shell.ls(path.join(dir, build_type, '*.apk')).filter(function (candidate) {
|
||||||
var apkName = path.basename(candidate);
|
var apkName = path.basename(candidate);
|
||||||
// Need to choose between release and debug .apk.
|
// Need to choose between release and debug .apk.
|
||||||
if (build_type === 'debug') {
|
if (build_type === 'debug') {
|
||||||
|
Loading…
Reference in New Issue
Block a user