From 0a7f2fc043c22a40616ecbcdf5b356f25e804da4 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Sun, 28 Mar 2021 21:14:03 +0200 Subject: [PATCH] Improve deploy of editor on linux --- Source/Tools/Flax.Build/Deploy/Deployment.Editor.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/Tools/Flax.Build/Deploy/Deployment.Editor.cs b/Source/Tools/Flax.Build/Deploy/Deployment.Editor.cs index 465f20f87..33dbdbb78 100644 --- a/Source/Tools/Flax.Build/Deploy/Deployment.Editor.cs +++ b/Source/Tools/Flax.Build/Deploy/Deployment.Editor.cs @@ -125,14 +125,17 @@ namespace Flax.Deploy // Compress Log.Info(string.Empty); Log.Info("Compressing editor files..."); - var editorPackageZipPath = Path.Combine(Deployer.PackageOutputPath, "Editor.zip"); + string editorPackageZipPath; if (Platform.BuildPlatform.Target == TargetPlatform.Linux) { // Use system tool (preserves executable file attributes and link files) - Utilities.Run("zip", "Editor.zip -r Editor", null, Deployer.PackageOutputPath, Utilities.RunOptions.None); + editorPackageZipPath = Path.Combine(Deployer.PackageOutputPath, "FlaxEditorLinux.zip"); + Utilities.Run("zip", "Editor.zip -r .", null, OutputPath, Utilities.RunOptions.None); + File.Move(Path.Combine(OutputPath, "Editor.zip"), editorPackageZipPath); } else { + editorPackageZipPath = Path.Combine(Deployer.PackageOutputPath, "Editor.zip"); using (ZipFile zip = new ZipFile()) { zip.AddDirectory(OutputPath);