<?php /** * * Build plugin - TGZ * * @author <axel.hahn@iml.unibe.ch> */ class build_zip extends build_base { /** * check requirements if the plugin could work * @return array */ public function checkRequirements() { return [ 'which zip' ]; } /** * get an array with shell commands to execute * @return array */ public function getBuildCommands(){ return [ 'cd "'. $this->getBuildDir(). '" && zip -r9 "'. $this->getOutfile().'" .' ]; } }