From b2d56727858b01e340de97e1d534cf5abb3d5b56 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 17 Jan 2022 18:59:39 +0100 Subject: [PATCH] Fix mac editor package zip --- Source/Tools/Flax.Build/Deploy/Deployment.Editor.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/Tools/Flax.Build/Deploy/Deployment.Editor.cs b/Source/Tools/Flax.Build/Deploy/Deployment.Editor.cs index 671e8ea9c..ca6bcb6c5 100644 --- a/Source/Tools/Flax.Build/Deploy/Deployment.Editor.cs +++ b/Source/Tools/Flax.Build/Deploy/Deployment.Editor.cs @@ -138,6 +138,14 @@ namespace Flax.Deploy Utilities.Run("zip", "Editor.zip -r .", null, OutputPath, Utilities.RunOptions.ThrowExceptionOnError); File.Move(Path.Combine(OutputPath, "Editor.zip"), editorPackageZipPath); } + else if (Platform.BuildTargetPlatform == TargetPlatform.Mac) + { + // Use system tool (preserves executable file attributes and link files) + editorPackageZipPath = Path.Combine(Deployer.PackageOutputPath, "FlaxEditorMac.zip"); + Utilities.FileDelete(editorPackageZipPath); + Utilities.Run("zip", "Editor.zip -r .", null, OutputPath, Utilities.RunOptions.ThrowExceptionOnError); + File.Move(Path.Combine(OutputPath, "Editor.zip"), editorPackageZipPath); + } else { editorPackageZipPath = Path.Combine(Deployer.PackageOutputPath, "Editor.zip");