Fixing mac/linux csharp binaries referencing
This commit is contained in:
@@ -193,13 +193,14 @@ namespace Flax.Deploy
|
||||
|
||||
private static void DeployEditorBinaries(TargetConfiguration configuration)
|
||||
{
|
||||
var binariesSubDir = Path.Combine(Platform.GetEditorBinaryDirectory(), configuration.ToString());
|
||||
var src = Path.Combine(RootPath, binariesSubDir);
|
||||
var dst = Path.Combine(OutputPath, binariesSubDir);
|
||||
Directory.CreateDirectory(dst);
|
||||
|
||||
if (Platform.BuildTargetPlatform == TargetPlatform.Windows)
|
||||
{
|
||||
var binariesSubDir = "Binaries/Editor/Win64/" + configuration;
|
||||
var src = Path.Combine(RootPath, binariesSubDir);
|
||||
var dst = Path.Combine(OutputPath, binariesSubDir);
|
||||
var dstDebug = Path.Combine(Deployer.PackageOutputPath, "EditorDebugSymbols/Win64/" + configuration);
|
||||
Directory.CreateDirectory(dst);
|
||||
Directory.CreateDirectory(dstDebug);
|
||||
|
||||
// Validate that build editor app has a valid version number
|
||||
@@ -233,11 +234,6 @@ namespace Flax.Deploy
|
||||
}
|
||||
else if (Platform.BuildTargetPlatform == TargetPlatform.Linux)
|
||||
{
|
||||
var binariesSubDir = "Binaries/Editor/Linux/" + configuration;
|
||||
var src = Path.Combine(RootPath, binariesSubDir);
|
||||
var dst = Path.Combine(OutputPath, binariesSubDir);
|
||||
Directory.CreateDirectory(dst);
|
||||
|
||||
// Deploy binaries
|
||||
DeployFile(src, dst, "FlaxEditor");
|
||||
DeployFile(src, dst, "FlaxEditor.Build.json");
|
||||
@@ -257,11 +253,6 @@ namespace Flax.Deploy
|
||||
}
|
||||
else if (Platform.BuildTargetPlatform == TargetPlatform.Mac)
|
||||
{
|
||||
var binariesSubDir = "Binaries/Editor/Mac/" + configuration;
|
||||
var src = Path.Combine(RootPath, binariesSubDir);
|
||||
var dst = Path.Combine(OutputPath, binariesSubDir);
|
||||
Directory.CreateDirectory(dst);
|
||||
|
||||
// Deploy binaries
|
||||
DeployFile(src, dst, "FlaxEditor");
|
||||
DeployFile(src, dst, "FlaxEditor.Build.json");
|
||||
@@ -278,10 +269,6 @@ namespace Flax.Deploy
|
||||
Utilities.Run("strip", "libmonosgen-2.0.1.dylib", null, dst, Utilities.RunOptions.None);
|
||||
Utilities.Run("strip", "libMoltenVK.dylib", null, dst, Utilities.RunOptions.None);
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user