Skip to content

Commit

Permalink
ZIP圧縮前に対象ファイルが削除されて、パッケージ化に失敗する問題を修正 (3f485d の不備)
Browse files Browse the repository at this point in the history
  • Loading branch information
esperecyan committed Apr 5, 2019
1 parent ff043a3 commit 510b758
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Editor/Exporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ private static void Export()

Process.Start(fileName: "PowerShell", arguments: "-Command \"Compress-Archive"
+ " -Path @(" + string.Join(separator: ",", value: packagePaths.Select(path => "'" + path + "'").ToArray()) + ")"
+ " -DestinationPath '" + Path.Combine(Environment.GetFolderPath(folder: Environment.SpecialFolder.DesktopDirectory), Exporter.PackageName + ".zip") + "'\"");
+ " -DestinationPath '" + Path.Combine(Environment.GetFolderPath(folder: Environment.SpecialFolder.DesktopDirectory), Exporter.PackageName + ".zip") + "'\"")
.WaitForExit();

foreach (string packagePath in packagePaths) {
File.Delete(path: packagePath);
Expand Down

0 comments on commit 510b758

Please sign in to comment.