Skip to content

Commit 8553607

Browse files
author
Vasil Chimev
authored
fix(utils): getAppPath() for Android .apk files (#60)
* fix(utils): getAppPath() for Android .apk files * chore: update npm scripts
1 parent 9ef661b commit 8553607

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ export function getAppPath(platform, runType) {
273273
//platforms/android/app/build/outputs/apk
274274
let apks = glob.sync("platforms/android/build/outputs/apk/*.apk").filter(function (file) { return file.indexOf("unaligned") < 0; });
275275
if (!apks || apks.length === 0) {
276-
let apks = glob.sync("platforms/android/app/build/outputs/apk/*.apk").filter(function (file) { return file.indexOf("unaligned") < 0; });
276+
apks = glob.sync("platforms/android/app/build/outputs/apk/*.apk").filter(function (file) { return file.indexOf("unaligned") < 0; });
277277
}
278278
return apks[0];
279279
} else if (platform.includes("ios")) {

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
},
4848
"scripts": {
4949
"postinstall": "node ./postinstall.js",
50-
"compile": "tsc --watch"
50+
"prepare": "tsc",
51+
"watch": "tsc --watch"
5152
}
5253
}

0 commit comments

Comments
 (0)