Fix Continuous Deployment
This commit is contained in:
2
Source/ThirdParty/rapidjson/reader.h
vendored
2
Source/ThirdParty/rapidjson/reader.h
vendored
@@ -1189,7 +1189,7 @@ private:
|
||||
d = NAN;
|
||||
}
|
||||
else if (RAPIDJSON_LIKELY(Consume(s, 'I') && Consume(s, 'n') && Consume(s, 'f'))) {
|
||||
d = (minus ? -INFINITY : INFINITY);
|
||||
d = (double)(minus ? -INFINITY : INFINITY);
|
||||
if (RAPIDJSON_UNLIKELY(s.Peek() == 'i' && !(Consume(s, 'i') && Consume(s, 'n')
|
||||
&& Consume(s, 'i') && Consume(s, 't') && Consume(s, 'y'))))
|
||||
RAPIDJSON_PARSE_ERROR(kParseErrorValueInvalid, s.Tell());
|
||||
|
||||
@@ -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