Minor tweak

This commit is contained in:
Joshua Granick
2015-02-19 14:18:16 -08:00
parent 5499af1d21
commit 822a20e9c9

View File

@@ -21,7 +21,7 @@ class ZipHelper {
PathHelper.mkdir (Path.directory (targetPath)); PathHelper.mkdir (Path.directory (targetPath));
if (PlatformHelper.hostPlatform == WINDOWS) { if (PlatformHelper.hostPlatform == WINDOWS || !FileSystem.isDirectory (path)) {
var files = new Array <Dynamic> (); var files = new Array <Dynamic> ();
@@ -65,10 +65,7 @@ class ZipHelper {
} else { } else {
var workingDirectory = Path.directory (path); ProcessHelper.runCommand (path, "zip", [ "-r", PathHelper.relocatePath (targetPath, path), "./" ]);
var sourcePath = Path.withoutDirectory (path);
ProcessHelper.runCommand (workingDirectory, "zip", [ "-r", PathHelper.relocatePath (targetPath, workingDirectory), sourcePath ]);
} }