Skip to content

Commit

Permalink
fix: incorrect android build path
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied committed Dec 10, 2021
1 parent b0125a5 commit 0d4374e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ class NgxScriptsCli {
let androidApkPath = `platforms/android/app/build/outputs/bundle/${
options.release ? 'release' : 'debug'
}`;
if (fs.existsSync(androidApkPath)) {

if (!fs.existsSync(androidApkPath)) {
// For cordova-android < 10 compatibility
androidApkPath = `platforms/android/app/build/outputs/apk/${
options.release ? 'release' : 'debug'
Expand Down Expand Up @@ -280,6 +281,7 @@ class NgxScriptsCli {

_copy(src, dest) {
try {
console.log({ src })
child.execSync(`${isWin ? 'xcopy /S /Y' : 'cp -Rf'} ${src} ${dest}`, {
stdio: 'ignore'
});
Expand Down

0 comments on commit 0d4374e

Please sign in to comment.