Fixes for compression

This commit is contained in:
David Anderson 2005-08-25 07:50:21 +00:00
parent c9051ad364
commit 92653ceebc
3 changed files with 5 additions and 2 deletions

View File

@ -31,7 +31,10 @@ public virtual bool Build(Config cfg, Build build)
System.Console.WriteLine("Mod failed to build: " + mod.GetName());
return false;
}
CompressDir(m_Cfg.GetReleaseName() + "-" + mod.GetName() + ".zip", mod.GetName() + "\\*.*");
CompressDir(
m_Cfg.GetReleaseName() + "-" + mod.GetName() + ".zip",
PropSlashes(mod.GetName() + "\\addons")
);
}
return true;

View File

@ -20,7 +20,7 @@ public override void CompressDir(string target, string dir)
info.FileName = m_Cfg.CompressPath();
info.WorkingDirectory = m_Cfg.OutputPath();
info.Arguments = "-r " + target + " " + dir;
info.Arguments = "-r " + target + " " + dir + "\\*.*";
info.UseShellExecute = false;
Process p = Process.Start(info);