- Run
git clone --recursive https://github.com/onOfficeGmbH/oo-wp-plugin.git
to clone this repository and its submodules. - Install composer.
- Run
composer check-platform-reqs
to ensure you have installed the required PHP extensions.- Example: The command tells you that the extensions
ext-mbstring
andext-simplexml
are missing. On Ubuntu, you can install these by runningsudo apt install php-mbstring php-simplexml
.
- Example: The command tells you that the extensions
- Run
composer install
to install the dependencies.
This is how you can generate a .zip to upload to a WordPress instance.
- Run
PREFIX=/tmp/release/onoffice-for-wp-websites make release
.- The
PREFIX
needs to be an absolute path. If you use a relative path, the script might not behave correctly and get into an infinite loop.
- The
- Run
sed -i "s/Version: .*$/Version: $(git describe --tags)/" /tmp/release/onoffice-for-wp-websites/plugin.php
to overwrite the version so that you can distinguish it from the stable release. - Create a zip file that you can upload to WordPress by running:
cd /tmp/release
(This is needed so that the zip has the correct folder hierarchy.)zip -r onoffice-for-wp-websites.zip ./onoffice-for-wp-websites
- Upload
/tmp/release/onoffice-for-wp-websites.zip
to WordPress.