crowdin_sync: Switch to new java crowdin cli tool
Change-Id: Id2efe3c387d8a1cc88e12211066d92ab535f22a7
diff --git a/README.mkdn b/README.mkdn
index 36ce518..44a1f4a 100644
--- a/README.mkdn
+++ b/README.mkdn
@@ -8,11 +8,11 @@
Prerequisites
-------------
-The Ruby variant of crowdin-cli >= 0.5.2 is required for this to work.
+The Java variant of crowdin is required for this to work.
- \curl -sSL https://get.rvm.io | bash -s stable --ruby
- source /home/your_username/.rvm/scripts/rvm # Add this to your .bashrc file!
- rvm all do gem install crowdin-cli
+ wget -qO - https://artifacts.crowdin.com/repo/GPG-KEY-crowdin | sudo apt-key add -
+ echo 'deb https://artifacts.crowdin.com/repo/deb/ /' | sudo tee /etc/apt/sources.list.d/crowdin.list > /dev/null
+ sudo apt-get update && sudo apt-get install crowdin
python-git is used for Git integration.
@@ -24,17 +24,21 @@
Executing
---------
Export the following environment variables to set the API keys and the base path.
-Base path should contain all LineageOS trees in subfolders, named after LineageOS branches:
+Each LineageOS version requires a different environment variable set for the base path that depends on the branch name:
- export CM_CROWDIN_API_KEY=your_api_key
- export CM_AOSP_CROWDIN_API_KEY=your_aosp_api_key
- export CM_CROWDIN_BASE_PATH=your_base_path
+ export LINEAGE_CROWDIN_API_KEY=your_api_key
+ export LINEAGE_AOSP_CROWDIN_API_KEY=your_aosp_api_key
+ export LINEAGE_CROWDIN_BASE_PATH_CM_13_0=your_13.0_base_path
+ export LINEAGE_CROWDIN_BASE_PATH_CM_14_1=your_14.1_base_path
+ export LINEAGE_CROWDIN_BASE_PATH_LINEAGE_15_1=your_15.1_base_path
Example:
- export CM_CROWDIN_API_KEY=1234567890
- export CM_AOSP_CROWDIN_API_KEY=0987654321
- export CM_CROWDIN_BASE_PATH=/mnt/android/lineageos
+ export LINEAGE_CROWDIN_API_KEY=1234567890
+ export LINEAGE_AOSP_CROWDIN_API_KEY=0987654321
+ export LINEAGE_CROWDIN_BASE_PATH_CM_13_0=/mnt/android/lineageos/cm-13.0
+ export LINEAGE_CROWDIN_BASE_PATH_CM_14_1=/mnt/android/lineageos/cm-14.1
+ export LINEAGE_CROWDIN_BASE_PATH_LINEAGE_15_1=/mnt/android/lineageos/cm-15.1
Execute: