phonegap-build
Advanced tools
Comparing version 0.8.3 to 0.8.4
@@ -55,7 +55,7 @@ /* | ||
// shell out to zip. For windows, use native script. | ||
var cmd = util.format('zip -r %s %s', zipPath, inputPath); | ||
var cmd = util.format('zip -r "%s" "%s"', zipPath, inputPath); | ||
if (os.type() === "Windows_NT") { | ||
cmd = util.format( | ||
'wscript %s %s %s', | ||
'wscript "%s" "%s" "%s"', | ||
path.join(__dirname, '..', '..', '..', 'res', 'windows', 'zip.js'), | ||
@@ -62,0 +62,0 @@ zipPath, |
{ | ||
"name": "phonegap-build", | ||
"description": "PhoneGap Build node library.", | ||
"version": "0.8.3", | ||
"version": "0.8.4", | ||
"homepage": "http://github.com/mwbrooks/node-phonegap-build", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -84,2 +84,16 @@ /* | ||
}); | ||
it('should support spaces in input path', function() { | ||
zip.compress('./path/to the/www', './build', function(e, path) {}); | ||
expect(shell.exec.mostRecentCall.args[0]).toMatch( | ||
p.resolve('./path/to the/www') | ||
); | ||
}); | ||
it('should support spaces in output path', function() { | ||
zip.compress('./www', './path/to the/build', function(e, path) {}); | ||
expect(shell.exec.mostRecentCall.args[0]).toMatch( | ||
p.resolve('./path/to the/build') | ||
); | ||
}); | ||
}); | ||
@@ -96,2 +110,16 @@ | ||
}); | ||
it('should support spaces in input path', function() { | ||
zip.compress('./path/to the/www', './build', function(e, path) {}); | ||
expect(shell.exec.mostRecentCall.args[0]).toMatch( | ||
p.resolve('./path/to the/www') | ||
); | ||
}); | ||
it('should support spaces in output path', function() { | ||
zip.compress('./www', './path/to the/build', function(e, path) {}); | ||
expect(shell.exec.mostRecentCall.args[0]).toMatch( | ||
p.resolve('./path/to the/build') | ||
); | ||
}); | ||
}); | ||
@@ -98,0 +126,0 @@ |
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
1501823
5833