You can now install scripts using git instead of svn

Ryo_Sangnoir

Developer
Staff member
Using scripts hosted on GitHub could be a poor experience as updates would fail due to GitHub's imperfect SVN support. To help with this, scripts can now be downloaded using git instead.

Where you would have previously installed a script with
Code:
svn checkout https://github.com/AUTHOR/SCRIPT/branches/BRANCH/

you can instead install with git using
Code:
git checkout https://github.com/AUTHOR/SCRIPT.git BRANCH

If you would have installed using a subfolder, like
Code:
svn checkout https://github.com/AUTHOR/SCRIPT/branches/BRANCH/SUBFOLDER/

you will have to use the new support for manifest files. You can run
Code:
git checkout https://github.com/AUTHOR/SCRIPT.git BRANCH
to download the script to the git/ directory, but not install any of the files yet. Create a file called "manifest.json" in the "git/AUTHOR-SCRIPT-BRANCH/" folder containing
Code:
{
  "root_directory": "SUBFOLDER"
}
then run
Code:
git sync
which should install the script files. Updates after this should work as expected. The script author can also add the manifest file to their repo to avoid users having to make these changes locally.

The svn CLI command parameters checkout, update, list and sync have equivalents under the git CLI command that behave similarly. There is a new preferences screen dealing with updating git scripts on login.

For scripts authors: the restriction that a script cannot have any non-permissible files (ccs/, data/, scripts/, relay/, images/, planting/ folders and the dependencies.txt file) has been removed for scripts installed using git. Instead, only files from those folders are copied to the relevant Mafia folders.
 
Top