Skip to content

Commit

Permalink
[TIMOB-24922] Fix cert generation on VS2017 (#71)
Browse files Browse the repository at this point in the history
* [TIMOB-24922] Fix cert generation on VS2017

* [TIMOB-24922] Bump version to 0.5.1
  • Loading branch information
ewanharris authored and infosia committed Jul 4, 2017
1 parent 677b248 commit 3cc8f1a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
0.5.1 (07/04/2017)
-------------------
* [TIMOB-24922] Fix cert generation on VS2017 - Move to using vsDevCmd instead of vcvarsall
* [TIMOB-24668] Update VS2017 detection logic to prevent error with VS2015
0.5.0 (05/9/2017)
-------------------
* Add emulator#status to get numeric status of emulator.
Expand Down
6 changes: 3 additions & 3 deletions lib/certs.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function create(appid, certificateFile, options, callback) {
}

// first lets create the cert
appc.subprocess.run(vsInfo.vcvarsall.replace(/\ /g, '^ '), [
appc.subprocess.run(vsInfo.vsDevCmd.replace(/[ \(\)\&]/g, '^$&'), [
'&&',
options.powershell || 'powershell',
'-ExecutionPolicy', 'Bypass', '-NoLogo', '-NonInteractive', '-NoProfile',
Expand Down Expand Up @@ -221,7 +221,7 @@ function generate(subjectName, certificateFile, options, callback) {
'-e', expirationDate, '-sv', pvk, cer
];

appc.subprocess.run(vsInfo.vcvarsall.replace(/\ /g, '^ '), args, function (code, out, err) {
appc.subprocess.run(vsInfo.vsDevCmd.replace(/[ \(\)\&]/g, '^$&'), args, function (code, out, err) {
if (code) {
var ex = new Error(__('Failed to create certificate (code %s)', code));
emitter.emit('error', ex);
Expand Down Expand Up @@ -305,7 +305,7 @@ function generatePFX(privateKeyFile, certificateFile, pfxDestinationFile, passwo
}

// package the certificate as pfx
appc.subprocess.run(vsInfo.vcvarsall.replace(/\ /g, '^ '), args, function (code, out, err) {
appc.subprocess.run(vsInfo.vsDevCmd.replace(/[ \(\)\&]/g, '^$&'), args, function (code, out, err) {
if (code) {
var ex = new Error(__('Failed to convert certificate to pfx (code %s)', code));
emitter.emit('error', ex);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "windowslib",
"version": "0.5.0",
"version": "0.5.1",
"description": "Windows Phone Utility Library",
"keywords": [
"appcelerator",
Expand Down

0 comments on commit 3cc8f1a

Please sign in to comment.