Fix Continuous Deployment
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
// Copyright (c) 2012-2024 Flax Engine. All rights reserved.
|
||||
|
||||
#define USE_STD
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
@@ -99,6 +101,9 @@ namespace Flax.Deploy
|
||||
Log.Info("Compressing game debug symbols files...");
|
||||
var gamePackageZipPath = Path.Combine(Deployer.PackageOutputPath, "GameDebugSymbols.zip");
|
||||
Utilities.FileDelete(gamePackageZipPath);
|
||||
#if USE_STD
|
||||
System.IO.Compression.ZipFile.CreateFromDirectory(Path.Combine(Deployer.PackageOutputPath, "GameDebugSymbols"), gamePackageZipPath, System.IO.Compression.CompressionLevel.Optimal, false);
|
||||
#else
|
||||
using (var zip = new Ionic.Zip.ZipFile())
|
||||
{
|
||||
zip.AddDirectory(Path.Combine(Deployer.PackageOutputPath, "GameDebugSymbols"));
|
||||
@@ -106,6 +111,7 @@ namespace Flax.Deploy
|
||||
zip.Comment = string.Format("Flax Game {0}.{1}.{2}\nDate: {3}", Deployer.VersionMajor, Deployer.VersionMinor, Deployer.VersionBuild, DateTime.UtcNow);
|
||||
zip.Save(gamePackageZipPath);
|
||||
}
|
||||
#endif
|
||||
Log.Info("Compressed game debug symbols package size: " + Utilities.GetFileSize(gamePackageZipPath));
|
||||
}
|
||||
Utilities.DirectoryDelete(Path.Combine(Deployer.PackageOutputPath, "GameDebugSymbols"));
|
||||
|
||||
Reference in New Issue
Block a user