You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/11/18 14:35:45 UTC

[GitHub] hiepxanh commented on a change in pull request #563: [Fix] better support to find Home path for window

hiepxanh commented on a change in pull request #563: [Fix] better support to find Home path for window
URL: https://github.com/apache/cordova-android/pull/563#discussion_r234447355
 
 

 ##########
 File path: bin/templates/cordova/lib/build.js
 ##########
 @@ -82,7 +82,9 @@ function parseOpts (options, resolvedTarget, projectRoot) {
         if (config.android && config.android[ret.buildType]) {
             var androidInfo = config.android[ret.buildType];
             if (androidInfo.keystore && !packageArgs.keystore) {
-                if (androidInfo.keystore.substr(0, 1) === '~') {
+                if (androidInfo.keystore.substr(0, 1) === '~' 
+                    || androidInfo.keystore.substr(0, 5) === '$HOME' 
+                    || androidInfo.keystore.substr(0, 10) === '%HOMEPATH%') {
                     androidInfo.keystore = process.env.HOME + androidInfo.keystore.substr(1);
 
 Review comment:
   I dont know how it can be broken?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org