Actual fix for compression!

This commit is contained in:
David Anderson 2005-08-25 08:02:48 +00:00
parent 92653ceebc
commit 0176d3a2ae
5 changed files with 8 additions and 8 deletions

View File

@ -32,8 +32,8 @@ namespace AMXXRelease
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())
);
}

View File

@ -21,12 +21,12 @@ namespace AMXXRelease
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);
}

View File

@ -19,8 +19,8 @@ namespace AMXXRelease
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);

View File

@ -19,8 +19,8 @@ namespace AMXXRelease
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);