Fix Continuous Deployment

This commit is contained in:
Wojtek Figat
2024-12-11 14:24:06 +01:00
parent 139a431614
commit 24266b64da
2 changed files with 7 additions and 1 deletions

View File

@@ -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());

View File

@@ -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"));