Add packaging iOS app to ipa file

This commit is contained in:
Wojtek Figat
2023-04-28 23:54:50 +02:00
parent 8de2e6a424
commit b6ceed5c6d
4 changed files with 21 additions and 15 deletions

View File

@@ -20,6 +20,7 @@ namespace Flax.Build
/// </summary>
public class Assembler
{
internal static string CacheFileName = "BuilderRules.dll";
private string _cacheFolderPath;
/// <summary>
@@ -70,7 +71,7 @@ namespace Flax.Build
string cacheAssemblyPath = null, cacheInfoPath = null, buildInfo = null;
if (_cacheFolderPath != null)
{
cacheAssemblyPath = Path.Combine(_cacheFolderPath, "BuilderRules.dll");
cacheAssemblyPath = Path.Combine(_cacheFolderPath, CacheFileName);
cacheInfoPath = Path.Combine(_cacheFolderPath, "BuilderRulesInfo.txt");
foreach (var sourceFile in SourceFiles)
@@ -162,7 +163,7 @@ namespace Flax.Build
syntaxTrees.Add(parsedSyntaxTree);
}
var compilation = CSharpCompilation.Create("BuilderRulesCache.dll", syntaxTrees.ToArray(), defaultReferences, defaultCompilationOptions);
var compilation = CSharpCompilation.Create(CacheFileName, syntaxTrees.ToArray(), defaultReferences, defaultCompilationOptions);
EmitResult emitResult = compilation.Emit(memoryStream);
// Process warnings and errors

View File

@@ -500,7 +500,8 @@ namespace Flax.Build
return true;
// Skip Flax.Build rules assembly
if (Path.GetFileName(x) == "BuilderRulesCache.dll")
var fileName = Path.GetFileName(x);
if (fileName == Assembler.CacheFileName || fileName == "BuilderRulesCache.dll")
return true;
// Skip non-C# DLLs

View File

@@ -172,7 +172,7 @@ namespace Flax.Build
catch (Exception ex)
{
Log.Exception(ex);
return 1;
failed = true;
}
finally
{