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);