mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Fixes for compression
This commit is contained in:
parent
c9051ad364
commit
92653ceebc
@ -31,7 +31,10 @@ 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());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
CompressDir(m_Cfg.GetReleaseName() + "-" + mod.GetName() + ".zip", mod.GetName() + "\\*.*");
|
CompressDir(
|
||||||
|
m_Cfg.GetReleaseName() + "-" + mod.GetName() + ".zip",
|
||||||
|
PropSlashes(mod.GetName() + "\\addons")
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Binary file not shown.
@ -20,7 +20,7 @@ public override void CompressDir(string target, string dir)
|
|||||||
|
|
||||||
info.FileName = m_Cfg.CompressPath();
|
info.FileName = m_Cfg.CompressPath();
|
||||||
info.WorkingDirectory = m_Cfg.OutputPath();
|
info.WorkingDirectory = m_Cfg.OutputPath();
|
||||||
info.Arguments = "-r " + target + " " + dir;
|
info.Arguments = "-r " + target + " " + dir + "\\*.*";
|
||||||
info.UseShellExecute = false;
|
info.UseShellExecute = false;
|
||||||
|
|
||||||
Process p = Process.Start(info);
|
Process p = Process.Start(info);
|
||||||
|
Loading…
Reference in New Issue
Block a user