From c213c771d24861209ca5c035d1f13c3c3b095c31 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 25 Aug 2005 08:20:11 +0000 Subject: [PATCH] Fixed compression on Linux --- installer/AMXXRelease/ABuilder.cs | 2 +- installer/AMXXRelease/Build.cs | 4 ++-- installer/AMXXRelease/LinuxBuilder.cs | 13 ++++++++++++- installer/AMXXRelease/Win32Builder.cs | 2 +- 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/installer/AMXXRelease/ABuilder.cs b/installer/AMXXRelease/ABuilder.cs index 00067c16..0ecc7773 100755 --- a/installer/AMXXRelease/ABuilder.cs +++ b/installer/AMXXRelease/ABuilder.cs @@ -32,7 +32,7 @@ public virtual bool Build(Config cfg, Build build) return false; } CompressDir( - PropSlashes(m_Cfg.OutputPath() + "\\" + m_Cfg.GetReleaseName() + "-" + mod.GetName() + ".zip"), + PropSlashes(m_Cfg.OutputPath() + "\\" + m_Cfg.GetReleaseName() + "-" + mod.GetName()), PropSlashes(m_Cfg.OutputPath() + "\\" + mod.GetName()) ); } diff --git a/installer/AMXXRelease/Build.cs b/installer/AMXXRelease/Build.cs index feda3133..6a422631 100755 --- a/installer/AMXXRelease/Build.cs +++ b/installer/AMXXRelease/Build.cs @@ -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); } diff --git a/installer/AMXXRelease/LinuxBuilder.cs b/installer/AMXXRelease/LinuxBuilder.cs index 63e0b6e6..d293cc1c 100755 --- a/installer/AMXXRelease/LinuxBuilder.cs +++ b/installer/AMXXRelease/LinuxBuilder.cs @@ -20,7 +20,18 @@ public override void CompressDir(string target, string dir) info.FileName = m_Cfg.CompressPath(); info.WorkingDirectory = dir; - info.Arguments = "zcvf " + target + " " + "*"; + + string [] files = Directory.GetFiles(dir); + string file_list = ""; + for (int i=0; i