Skip to content

Commit

Permalink
[Fix] better support to find Home path for window
Browse files Browse the repository at this point in the history
  • Loading branch information
hiepxanh committed Nov 18, 2018
1 parent dd352a1 commit a2ca994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/templates/cordova/lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function parseOpts (options, resolvedTarget, projectRoot) {
androidInfo.keystore = process.env.HOMEPATH + androidInfo.keystore.substr(10);
}
if (androidInfo.keystore.substr(0, 13) === '%USERPROFILE%') {
androidInfo.keystore = process.env.HOMEPATH + androidInfo.keystore.substr(13);
androidInfo.keystore = process.env.USERPROFILE + androidInfo.keystore.substr(13);
}
packageArgs.keystore = path.resolve(path.dirname(buildConfig), androidInfo.keystore);
events.emit('log', 'Reading the keystore from: ' + packageArgs.keystore);
Expand Down

0 comments on commit a2ca994

Please sign in to comment.