Select Git revision
init.sh.cfg
build_zip.php 571 B
<?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().'" .'
];
}
}