phonegap-build
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -39,2 +39,8 @@ /* | ||
// Phonegap Build expects 'www' to be at the root level in the | ||
// ZIP-file - we'll keep the oldDir to CD back after the ZIP's | ||
// been created. | ||
var oldDir = shell.pwd(); | ||
shell.cd(wwwPath); | ||
// make build directory | ||
@@ -50,6 +56,6 @@ shell.mkdir('-p', buildPath); | ||
if(process.env.OS == "Windows_NT") { | ||
cmd = 'wscript '+ path.join('..', '..', '..', 'res', 'windows', 'zip.js') + ' ' + zipPath + ' ' + wwwPath; | ||
cmd = 'wscript '+ path.join('..', '..', '..', 'res', 'windows', 'zip.js') + ' ' + zipPath + ' .'; | ||
} | ||
else { | ||
cmd = 'zip -r ' + zipPath + ' ' + wwwPath; | ||
cmd = 'zip -r ' + zipPath + ' .'; | ||
} | ||
@@ -59,2 +65,6 @@ | ||
// Change back to old directory due to implicit assumptions | ||
// on the current working directory elsewhere in the script. | ||
shell.cd(oldDir); | ||
if (out.code !== 0) { | ||
@@ -61,0 +71,0 @@ module.exports.cleanup(zipPath); |
{ | ||
"name": "phonegap-build", | ||
"description": "PhoneGap Build command-line interface and node.js library.", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"homepage": "http://github.com/mwbrooks/phonegap-build-cli", | ||
@@ -45,5 +45,10 @@ "repository": { | ||
"email": "michael@michaelbrooks.ca", | ||
"url": "http://michaelbrooks.ca/" | ||
"url": "http://michaelbrooks.ca" | ||
}, | ||
{ | ||
"name": "Mathijs de Bruin", | ||
"email": "mathijs@mathijsfietst.nl", | ||
"url": "http://djangopeople.net/dokterbob" | ||
}, | ||
{ | ||
"name": "Benn Mapes", | ||
@@ -50,0 +55,0 @@ "email": "benn.mapes@gmail.com", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1538827
7019