cividesk/civicrm

There is no license information available for the latest version (5.46.x-dev) of this package.

CiviCRM platform for Cividesk.

5.46.x-dev 2024-04-24 18:19 UTC

This package is auto-updated.

Last update: 2024-04-24 12:49:43 UTC


README

Getting started

Drupal 9: with composer

composer require cividesk/civicrm:5.46.x-dev

You can even then remove the `civicrm/civicrm-core`, `civicrm/civicrm-drupal-8andcivicrm/civicrm-packageslines from yourcomposer.jsonfile as these dependencies are already included incividesk/civicrm-patches`.

Drupal 7: direct download

curl https://download.cividesk.com/civicrm-5.46.3-drupal.tar.gz -o - | tar xfz -

... or a similar command with the zip version of the same URL!

Drupal 7: build your own

git clone -b 5.46 https://gitlab.com/cividesk/platform/civicrm.git
cd civicrm && make

This will (re-)create a civicrm/civicrm directory with the CiviCRM platform for Cividesk.

Then, maintain with:

cd civicrm && git pull && make

Add new patches to the build

If the patch is available in a gitlab repository:

  • [ ] download the patch in the patches folder (use the same name as the commit id)
    • the easiest way to download a patch file is to add `.patch` to the end of the URL for the corresponding PR.
    • use the same name as the commit id for the patch file

If you need to create patch an existing filei (ie. CRM/Report/Form.php):

cd {civicrm_root}
cp {file}.php {file}.php.ori
vi {file}.php
diff -Naur {file}.php.ori {file}.php > {patches_dir}/my-new-patch.patch

Then:

  • [ ] edit the `patches/README.md` file to add a comment and instructions about your patch
  • [ ] run `make` and check that all patches apply correctly
  • [ ] run `make release && git status`
  • [ ] check that all looks good (the composer.json should have changed)
  • [ ] commit and push all your changes