From ac6f4e5c4460ae5d532024ebb4fcb0d2fee0ea50 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Sun, 30 Sep 2018 15:48:26 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=93=20Update=20documentation,=20add=20?= =?UTF-8?q?bashrc=20macro?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 2f992fd..76415d4 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,22 @@ sudo npm install -g typescript tslint sudo apt-get install xdelta3 ``` +In addition, the ```patch-installer``` repository must be present in the parent folder of this repository. + Transpile the TypeScript files to JavaScript by running: ```bash npm start ``` +For a better command line experience, add the following to your ```~/.bashrc``` file: + +```bash +alias swtor_install='node /path/to/installation/patcher/dist/installPatch.js' + +complete -W 'assets_swtor_de_de assets_swtor_en_us assets_swtor_fr_fr assets_swtor_main assets_swtor_test_de_de assets_swtor_test_en_us assets_swtor_test_fr_fr assets_swtor_test_main eualas movies_de_de movies_en_us movies_fr_fr patcher2014 patcher2017 retailclient_liveqatest retailclient_swtor retailclient_publictest' 'swtor_install' +``` + # Usage Either directly run whatever script you need: @@ -22,6 +32,7 @@ node dist/getManifest.js assets_swtor_main node dist/getSolidPkg.js assets_swtor_main 126 127 node dist/getSolidPkgZip.js assets_swtor_main 126 127 node dist/installPatch.js assets_swtor_main 126 127 +swtor_install assets_swtor_main 126 127 ``` Or import the functions into your Node.js application: