From 822a20e9c9e4b950e65d19ac7462ba358dbc1b45 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Thu, 19 Feb 2015 14:18:16 -0800 Subject: [PATCH] Minor tweak --- lime/tools/helpers/ZipHelper.hx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lime/tools/helpers/ZipHelper.hx b/lime/tools/helpers/ZipHelper.hx index 565e16659..d6c8804a3 100644 --- a/lime/tools/helpers/ZipHelper.hx +++ b/lime/tools/helpers/ZipHelper.hx @@ -21,7 +21,7 @@ class ZipHelper { PathHelper.mkdir (Path.directory (targetPath)); - if (PlatformHelper.hostPlatform == WINDOWS) { + if (PlatformHelper.hostPlatform == WINDOWS || !FileSystem.isDirectory (path)) { var files = new Array (); @@ -65,10 +65,7 @@ class ZipHelper { } else { - var workingDirectory = Path.directory (path); - var sourcePath = Path.withoutDirectory (path); - - ProcessHelper.runCommand (workingDirectory, "zip", [ "-r", PathHelper.relocatePath (targetPath, workingDirectory), sourcePath ]); + ProcessHelper.runCommand (path, "zip", [ "-r", PathHelper.relocatePath (targetPath, path), "./" ]); }