compression is now optional
This commit is contained in:
parent
605bef0482
commit
807e6a0f9a
|
@ -35,11 +35,14 @@ public virtual bool Build(Config cfg, Build build)
|
||||||
{
|
{
|
||||||
System.Console.WriteLine("Mod failed to build: " + mod.GetName());
|
System.Console.WriteLine("Mod failed to build: " + mod.GetName());
|
||||||
}
|
}
|
||||||
|
if (m_Cfg.CompressPath() != null)
|
||||||
|
{
|
||||||
CompressDir(
|
CompressDir(
|
||||||
PropSlashes(m_Cfg.OutputPath() + "\\" + m_Cfg.GetReleaseName() + "-" + mod.GetName()),
|
PropSlashes(m_Cfg.OutputPath() + "\\" + m_Cfg.GetReleaseName() + "-" + mod.GetName()),
|
||||||
PropSlashes(m_Cfg.OutputPath() + "\\" + mod.GetName())
|
PropSlashes(m_Cfg.OutputPath() + "\\" + mod.GetName())
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
|
@ -21,8 +21,6 @@ public Build(Config cfg)
|
||||||
m_Mods.Add(core);
|
m_Mods.Add(core);
|
||||||
m_Mods.Add(cstrike);
|
m_Mods.Add(cstrike);
|
||||||
|
|
||||||
if (m_Cfg.MakeOpts().IndexOf("amd64") == -1)
|
|
||||||
{
|
|
||||||
ModDoD dod = new ModDoD();
|
ModDoD dod = new ModDoD();
|
||||||
ModEsf esf = new ModEsf();
|
ModEsf esf = new ModEsf();
|
||||||
ModNs ns = new ModNs();
|
ModNs ns = new ModNs();
|
||||||
|
@ -35,7 +33,6 @@ public Build(Config cfg)
|
||||||
m_Mods.Add(tfc);
|
m_Mods.Add(tfc);
|
||||||
m_Mods.Add(ts);
|
m_Mods.Add(ts);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public virtual int GetMods()
|
public virtual int GetMods()
|
||||||
{
|
{
|
||||||
|
|
|
@ -59,12 +59,6 @@ public void Release(string file)
|
||||||
|
|
||||||
private bool ValidateConfigPaths()
|
private bool ValidateConfigPaths()
|
||||||
{
|
{
|
||||||
if ( !File.Exists( ABuilder.PropSlashes(m_Cfg.CompressPath()) ) )
|
|
||||||
{
|
|
||||||
Console.WriteLine("Failed to find compression program! Check 'compress' option in config.");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
string source = ABuilder.PropSlashes(m_Cfg.GetSourceTree());
|
string source = ABuilder.PropSlashes(m_Cfg.GetSourceTree());
|
||||||
|
|
||||||
if (!Directory.Exists(source))
|
if (!Directory.Exists(source))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user