Library for handling Solid State Networks patch files, written in TypeScript for Node.js
Find a file
2018-10-20 22:46:15 +02:00
src 🚚 Move command-line tools to ssn-tools repo 2018-10-19 01:07:12 +02:00
.editorconfig Add config module 2018-06-21 14:17:21 +02:00
.gitignore 🚨 Adding tslint and fixing warnings 2018-06-21 14:37:29 +02:00
LICENSE 📄 Add license 2018-10-07 16:16:18 +02:00
package-lock.json 👷‍♂️ Update dependencies 2018-10-18 19:45:56 +02:00
package.json 👷‍♂️ Add preinstall script 2018-10-19 00:02:14 +02:00
README.md 🚚 Move info to documentation repo 2018-10-20 22:46:15 +02:00
tsconfig.json 👷‍♂️ Prepare package.json for npm install 2018-10-19 00:00:25 +02:00

This library provides various methods for fetching releases from SWTORs patch server CDN and installing them. You can use it to write your own patch program. If you just want to install patches without having to do any programming, use the command-line tools from the ssn-tools repository.

Installation

For this tool to work, tsc and tslint must be globally available, e.g. by running:

sudo npm install -g typescript tslint

In the project where you want to use this library, add the following to your package.json file:

{
  "dependencies": {
    "ssn": "git+https://git.jedipedia.net/swtor/ssn.git"
  }
}

Then run:

npm install

Usage

To import the functions into your Node.js application:

import * as ssn from 'ssn';

(async function() {
  const manifestContents = await ssn.getManifest('assets_swtor_main');
  console.log(manifestContents);

  const solidpkgContents = await ssn.getSolidpkg('assets_swtor_main', 126, 127);
  console.log(solidpkgContents);
}())

Development

To work with the repository locally:

sudo npm install -g typescript tslint
git clone https://git.jedipedia.net/swtor/ssn.git
cd ssn
npm install && npm start

License

Copyright (C) 2018 Jedipedia.net

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.