Skip to content

Commit 50017d4

Browse files
committed
Fix --key-store-path path
See #1086
1 parent 7587f3a commit 50017d4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/common

Submodule common updated 1 file

lib/services/android-project-service.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import * as constants from "../constants";
77
import * as semver from "semver";
88
import * as projectServiceBaseLib from "./platform-project-service-base";
99
import * as androidDebugBridgePath from "../common/mobile/android/android-debug-bridge";
10+
import { quoteString } from "../common/helpers";
1011

1112
export class AndroidProjectService extends projectServiceBaseLib.PlatformProjectServiceBase implements IPlatformProjectService {
1213
private static VALUES_DIRNAME = "values";
@@ -212,7 +213,8 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
212213

213214
if(this.$options.release) {
214215
buildOptions.push("-Prelease");
215-
buildOptions.push(`-PksPath=${this.$options.keyStorePath}`);
216+
console.log(process.cwd());
217+
buildOptions.push(`-PksPath=${path.resolve(this.$options.keyStorePath)}`);
216218
buildOptions.push(`-Palias=${this.$options.keyStoreAlias}`);
217219
buildOptions.push(`-Ppassword=${this.$options.keyStoreAliasPassword}`);
218220
buildOptions.push(`-PksPassword=${this.$options.keyStorePassword}`);
@@ -361,7 +363,7 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
361363
let args = [configuration, "-f", path.join(projectRoot, "build.xml")];
362364
if(configuration === "release") {
363365
if(this.$options.keyStorePath) {
364-
args = args.concat(["-Dkey.store", this.$options.keyStorePath]);
366+
args = args.concat(["-Dkey.store", path.resolve(this.$options.keyStorePath)]);
365367
}
366368

367369
if(this.$options.keyStorePassword) {

0 commit comments

Comments
 (0)