diff --git a/README.md b/README.md index f6f24a4..818d417 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,6 @@ For this tool to work, `tsc` and `tslint` must be globally available, e.g. by ru sudo npm install -g typescript tslint ``` -In addition, the `patch-installer` repository must be present in the parent folder of this repository. - Install dependencies and transpile the TypeScript files to JavaScript by running: ```bash diff --git a/package-lock.json b/package-lock.json index c9d258d..5661e37 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,6 +14,10 @@ "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" }, + "ssn-installer": { + "version": "git+https://git.jedipedia.net/swtor/ssn-installer.git#88dba8d750a88a7a11a82f77e4bacc624a426ed7", + "from": "git+https://git.jedipedia.net/swtor/ssn-installer.git" + }, "xml-js": { "version": "1.6.8", "resolved": "https://registry.npmjs.org/xml-js/-/xml-js-1.6.8.tgz", diff --git a/package.json b/package.json index fd8b4b7..5148c64 100644 --- a/package.json +++ b/package.json @@ -8,13 +8,14 @@ }, "main": "dist/index.js", "scripts": { - "start": "rm -rf dist && tsc && cd ../patch-installer && ./build.sh && cd ../ssn && mkdir dist/lib && cp ../patch-installer/patch-installer dist/lib", + "start": "rm -rf dist && tsc", "test": "echo \"Error: no test specified\" && exit 1" }, "devDependencies": { "@types/node": "^10.11.4" }, "dependencies": { + "ssn-installer": "git+https://git.jedipedia.net/swtor/ssn-installer.git", "xml-js": "^1.6.8" } } diff --git a/src/ssn/installation/launch.ts b/src/ssn/installation/launch.ts index e680b4f..bef8028 100644 --- a/src/ssn/installation/launch.ts +++ b/src/ssn/installation/launch.ts @@ -2,7 +2,7 @@ import * as childProcess from 'child_process'; import * as fs from 'fs'; import * as path from 'path'; -const processPath = path.join(__dirname, '../../lib/patch-installer'); +const processPath = path.join(__dirname, 'ssn-installer'); export default function launchProcess( diskFile: string,