Minor tweak
This commit is contained in:
@@ -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 ]);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user