Actual fix for compression!
This commit is contained in:
parent
92653ceebc
commit
0176d3a2ae
|
@ -32,8 +32,8 @@ public virtual bool Build(Config cfg, Build build)
|
|||
return false;
|
||||
}
|
||||
CompressDir(
|
||||
m_Cfg.GetReleaseName() + "-" + mod.GetName() + ".zip",
|
||||
PropSlashes(mod.GetName() + "\\addons")
|
||||
PropSlashes(m_Cfg.OutputPath() + "\\" + m_Cfg.GetReleaseName() + "-" + mod.GetName() + ".zip"),
|
||||
PropSlashes(m_Cfg.OutputPath() + "\\" + mod.GetName())
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
|
@ -21,12 +21,12 @@ public Build()
|
|||
ModTFC tfc = new ModTFC();
|
||||
ModTs ts = new ModTs();
|
||||
|
||||
m_Mods.Add(core);
|
||||
/*m_Mods.Add(core);
|
||||
m_Mods.Add(cstrike);
|
||||
m_Mods.Add(dod);
|
||||
m_Mods.Add(esf);
|
||||
m_Mods.Add(ns);
|
||||
m_Mods.Add(tfc);
|
||||
m_Mods.Add(tfc);*/
|
||||
m_Mods.Add(ts);
|
||||
}
|
||||
|
||||
|
|
|
@ -19,8 +19,8 @@ public override void CompressDir(string target, string dir)
|
|||
ProcessStartInfo info = new ProcessStartInfo();
|
||||
|
||||
info.FileName = m_Cfg.CompressPath();
|
||||
info.WorkingDirectory = m_Cfg.OutputPath();
|
||||
info.Arguments = "zcvf " + target + " " + dir;
|
||||
info.WorkingDirectory = dir;
|
||||
info.Arguments = "zcvf " + target + " " + "*";
|
||||
info.UseShellExecute = false;
|
||||
|
||||
Process p = Process.Start(info);
|
||||
|
|
|
@ -19,8 +19,8 @@ public override void CompressDir(string target, string dir)
|
|||
ProcessStartInfo info = new ProcessStartInfo();
|
||||
|
||||
info.FileName = m_Cfg.CompressPath();
|
||||
info.WorkingDirectory = m_Cfg.OutputPath();
|
||||
info.Arguments = "-r " + target + " " + dir + "\\*.*";
|
||||
info.WorkingDirectory = dir;
|
||||
info.Arguments = "-r " + target + " " + "*.*";
|
||||
info.UseShellExecute = false;
|
||||
|
||||
Process p = Process.Start(info);
|
||||
|
|
Loading…
Reference in New Issue
Block a user