Skip to content
Permalink
Browse files
fix(build): support tilde expansion on windows (#563)
Co-authored-by: Raphael von der Grün <raphinesse@gmail.com>
  • Loading branch information
hiepxanh and raphinesse committed Jul 13, 2021
1 parent 16ff6e1 commit 68a302e9d2b9cf428a0decbaf9535f934eeca0d5
Showing 3 changed files with 8 additions and 3 deletions.
@@ -20,6 +20,7 @@
var path = require('path');
var fs = require('fs');
var nopt = require('nopt');
const untildify = require('untildify');

var Adb = require('./Adb');

@@ -82,9 +83,7 @@ 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) === '~') {
androidInfo.keystore = process.env.HOME + androidInfo.keystore.substr(1);
}
androidInfo.keystore = untildify(androidInfo.keystore);
packageArgs.keystore = path.resolve(path.dirname(buildConfig), androidInfo.keystore);
events.emit('log', 'Reading the keystore from: ' + packageArgs.keystore);
}

Some generated files are not rendered by default. Learn more.

@@ -31,6 +31,7 @@
"nopt": "^5.0.0",
"properties-parser": "^0.3.1",
"semver": "^7.3.5",
"untildify": "^4.0.0",
"which": "^2.0.2"
},
"devDependencies": {

0 comments on commit 68a302e

Please sign in to comment.