is there a way how to zip/unzip files or folders with editor scripting?

i made my build tool, which makes build with name in format XXX-DDMMYY-HHMMSS so i have solved mistakes when naming builds only step ahead i need is to pack the build into .zip file with the same name

is there way to use zippacker (or rar or whatever else common compression) from unity editor script?

Look at GZipStream. The example code at the bottom is enough to get you started

edit: more to help you with compressing directories

GZipStream won’t work for folders?