3 Generate manual vendor library archives
Andy Heathershaw edited this page 2018-08-01 13:47:51 +01:00

To generate the archive of manual vendor libraries (users will need to download if they cannot use Composer to automatically install the vendor libraries):

  • Git checkout the Blue Twilight repository (git clone ssh://git@apps.andysh.uk:7999/aheathershaw/blue-twilight.git <folder_name>)
  • Change into the directory just checked out (cd <folder_name>)
  • Fetch all tags (git fetch --all --tags --prune)
  • Checkout the version tag to generate the vendor libraries for (git checkout tags/v<version_number>)
  • Run composer install to install the vendor libraries
  • Create the .zip file (zip -rTo vendors_v<version_number>.zip vendor)
  • Create the .tar.gz (tar -czf vendors_v<version_number>.tar.gz vendor)
  • Upload the created files to the release in Gitea

For example:

git clone ssh://git@apps.andysh.uk:7999/aheathershaw/blue-twilight.git blue-twilight-vendors
cd blue-twilight-vendors
git fetch --all --tags --prune
git checkout tags/v2.1.2
composer install
zip -rTo vendors_v2.1.2.zip vendor
tar -czf vendors_v2.1.2.tar.gz vendor