Add preserving package output directory across sequential package builds
This commit is contained in:
@@ -34,6 +34,7 @@ namespace Flax.Deploy
|
||||
// Prepare
|
||||
RootPath = Globals.EngineRoot;
|
||||
OutputPath = Path.Combine(Deployer.PackageOutputPath, "Editor");
|
||||
Utilities.DirectoryDelete(OutputPath);
|
||||
Directory.CreateDirectory(OutputPath);
|
||||
Log.Info(string.Empty);
|
||||
Log.Info("Deploy editor files");
|
||||
@@ -130,12 +131,14 @@ namespace Flax.Deploy
|
||||
{
|
||||
// Use system tool (preserves executable file attributes and link files)
|
||||
editorPackageZipPath = Path.Combine(Deployer.PackageOutputPath, "FlaxEditorLinux.zip");
|
||||
Utilities.FileDelete(editorPackageZipPath);
|
||||
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");
|
||||
Utilities.FileDelete(editorPackageZipPath);
|
||||
using (ZipFile zip = new ZipFile())
|
||||
{
|
||||
zip.AddDirectory(OutputPath);
|
||||
@@ -152,6 +155,7 @@ namespace Flax.Deploy
|
||||
{
|
||||
Log.Info("Compressing editor debug symbols files...");
|
||||
editorPackageZipPath = Path.Combine(Deployer.PackageOutputPath, "EditorDebugSymbols.zip");
|
||||
Utilities.FileDelete(editorPackageZipPath);
|
||||
using (ZipFile zip = new ZipFile())
|
||||
{
|
||||
zip.AddDirectory(Path.Combine(Deployer.PackageOutputPath, "EditorDebugSymbols"));
|
||||
|
||||
Reference in New Issue
Block a user