Skip to content
Snippets Groups Projects
Commit 8ff0116e authored by hahn's avatar hahn
Browse files

add example build plugin: zip

parent ed6a291c
No related branches found
No related tags found
1 merge request!195534 add docker
<?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().'" .'
];
}
}
{
"name": "ZIP Archive",
"description": "Create a ZIP archive",
"author": "Axel Hahn; University of Bern; Institute for Medical education",
"version": "1.0",
"url": "[included]",
"license": "GNU GPL 3.0",
"extension": "zip"
}
{
"plugin_name": "ZIP",
"description": "ZIP Archiv erstellen"
}
\ No newline at end of file
{
"plugin_name": "ZIP",
"description": "Create a ZIP archive"
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment