mirror of
https://github.com/roundcube/roundcubemail.git
synced 2025-12-28 07:55:07 +00:00
Page:
Build from source
Pages
Build from source
Changelog
Configuration
Configuration: LDAP Address Books
Configuration: Load balanced Setup
Configuration: Multi Domain Setup
Configuration: OAuth2
Dev Accessibility Guidelines
Dev Contribution
Dev Docs
Dev Guidelines
Dev Releases
FAQ
Home
Howto Report Issues
Install Requirements
Installation
Javascript API
Languages
Online Help
Plugin API
Plugin Events
Plugin Hooks
Plugin managesieve
Plugin password
Plugins Link to new page
Plugins
Skin Markup
Skins
Upgrade
Version History
6
Build from source
Philip Weir edited this page 2025-09-14 14:02:55 +01:00
Table of Contents
- Build Roundcube from Source
- 1. Fetch the source from github
- 2. Switch to the according branch
- 3. Install JavaScript dependencies
- 4. Compress Javascript files and add cache-buster tokens to images referenced from CSS styles
- 5. Optionally compress CSS files as well
- 6. Remove development stuff, installer and git files
- 7. Download and configure Composer
- 8. Optionally, add dependencies for LDAP modules in order to enable LDAP address books in Roundcube
- 9. Install PHP dependencies using Composer
Build Roundcube from Source
Building Roundcube from source is pretty similar to Dev Releases.
Let's list the individual steps with a short description:
1. Fetch the source from github
git clone git://github.com/roundcube/roundcubemail.git roundcubemail-git
2. Switch to the according branch
cd roundcubemail-git
git checkout tags/1.1.5
(check out whatever tag or branch you desire)
3. Install JavaScript dependencies
(for git master and versions >= 1.3 only)
bin/install-jsdeps.sh
4. Compress Javascript files and add cache-buster tokens to images referenced from CSS styles
bin/jsshrink.sh
bin/updatecss.sh
5. Optionally compress CSS files as well
bin/cssshrink.sh
6. Remove development stuff, installer and git files
rm transifexpull.sh package2composer.sh importgettext.sh exportgettext.sh README.md INSTALL UPGRADING, LICENSE, CHANGELOG
rm -rf tests/ installer/ .git* .tx*
7. Download and configure Composer
curl -sS https://getcomposer.org/installer | php -- --install-dir=/tmp/
cp composer.json-dist composer.json
8. Optionally, add dependencies for LDAP modules in order to enable LDAP address books in Roundcube
php /tmp/composer.phar require pear-pear.php.net/net_ldap2:~2.1.0 kolab/net_ldap3:dev-master --no-update
9. Install PHP dependencies using Composer
php /tmp/composer.phar install --prefer-dist --no-dev
The roundcubemail-git directory now contains a complete Roundcube installation ready for deployment or packaging.