From: Vincent Vanwaelscappel Date: Wed, 22 Mar 2023 09:20:28 +0000 (+0100) Subject: wip #5817 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=454bdc720d4694278ccf87c9d2e3fd4892566627;p=cubist_util.git wip #5817 @0.25 --- diff --git a/src/CommandLine/Inkscape.php b/src/CommandLine/Inkscape.php deleted file mode 100644 index dd926fc..0000000 --- a/src/CommandLine/Inkscape.php +++ /dev/null @@ -1,27 +0,0 @@ -setArg('f', $file); - foreach ($verbs as $verb) { - $this->setArg('verb', $verb); - } - } - - public function strokeToPath($file) - { - $this->openFileAndApplyVerbs($file, ['EditSelectAll', 'StrokeToPath', 'FileSave', 'FileQuit']); - } -} \ No newline at end of file diff --git a/src/Zip.php b/src/Zip.php index 85aee80..259715b 100644 --- a/src/Zip.php +++ b/src/Zip.php @@ -23,9 +23,9 @@ class Zip $cl->setArg('j'); } $cl->setArg(null, $zip); + $cl->setArg('x', '"__MACOSX/*"'); $cl->execute(); - if (stristr($cl->getOutput(), 'zipfile corrupt')) { $corrupted = $zip . '.corrupted'; rename($zip, $corrupted);