diff --git a/public_html/deployment/plugins/build/zip/build_zip.php b/public_html/deployment/plugins/build/zip/build_zip.php new file mode 100644 index 0000000000000000000000000000000000000000..37e7066f208f1ac93e0e27fcc25d0503eb8dae63 --- /dev/null +++ b/public_html/deployment/plugins/build/zip/build_zip.php @@ -0,0 +1,32 @@ +<?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().'" .' + ]; + } + + +} diff --git a/public_html/deployment/plugins/build/zip/info.json b/public_html/deployment/plugins/build/zip/info.json new file mode 100644 index 0000000000000000000000000000000000000000..0d4f6b9a8c0f016628833bade27240962a1dc3cc --- /dev/null +++ b/public_html/deployment/plugins/build/zip/info.json @@ -0,0 +1,11 @@ +{ + "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" +} diff --git a/public_html/deployment/plugins/build/zip/lang_de-de.json b/public_html/deployment/plugins/build/zip/lang_de-de.json new file mode 100644 index 0000000000000000000000000000000000000000..f0bf38953e92764fb46594a7d33088ef508a17c5 --- /dev/null +++ b/public_html/deployment/plugins/build/zip/lang_de-de.json @@ -0,0 +1,4 @@ +{ + "plugin_name": "ZIP", + "description": "ZIP Archiv erstellen" +} \ No newline at end of file diff --git a/public_html/deployment/plugins/build/zip/lang_en-en.json b/public_html/deployment/plugins/build/zip/lang_en-en.json new file mode 100644 index 0000000000000000000000000000000000000000..c0fd28c102ae6d2ff87694ab729740c5f6aa339e --- /dev/null +++ b/public_html/deployment/plugins/build/zip/lang_en-en.json @@ -0,0 +1,4 @@ +{ + "plugin_name": "ZIP", + "description": "Create a ZIP archive" +} \ No newline at end of file