From b6eccc2dabc79249df13f59670abdcca0f883a94 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Mon, 9 Jul 2018 01:58:10 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=93=20Update=20install=20instructions,?= =?UTF-8?q?=20document=20future=20features?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 +++-- src/installPatch.ts | 7 +++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4b6feb1..bec09df 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,11 @@ This tool is used for fetching releases from SWTOR’s patch server CDN and installing them. # Installation -For this tool to work, ```tsc``` and ```tslint``` must be globally available, e.g. by running: +For this tool to work, ```tsc```, ```tslint``` and ```xdelta3``` must be globally available, e.g. by running: ```bash -npm install -g typescript tslint +sudo npm install -g typescript tslint +sudo apt-get install xdelta3 ``` Transpile the TypeScript files to JavaScript by running: diff --git a/src/installPatch.ts b/src/installPatch.ts index f954982..c60ac9a 100644 --- a/src/installPatch.ts +++ b/src/installPatch.ts @@ -25,6 +25,13 @@ if (!to.match(/^(0|[1-9][0-9]{0,2})$/)) { failFunction(`to value "${to.substring(0, 300)}" is not a valid integer; it must be in range [0, 999].`); } +//TODO: set directory with existing patch data +//TODO: set target directory where patch should be installed +//TODO: set temp directory where patch files should be stored. +//TODO: set location of xdelta3 executable +//TODO: set from=any so it detects current version automatically +//TODO: set to=manifest/current to install whatever is the current version in manifest/on CDN + (async () => { const patch = await getPatch(product as Product, Number(from), Number(to)); //console.log(patch);