Skip to content

Commit

Permalink
Updated manifest location to make it easier to publish custom updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpwhittaker committed Aug 27, 2017
1 parent 152d2de commit c6e851f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion install.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const fs = require('fs');
const path = require('path');
const request = require('request');
const server = require('./server');

module.exports.getManifest = function(mods, fullScan, emuPath, checkFiles) {
if (!mods) mods = [];
Expand All @@ -13,7 +14,7 @@ module.exports.getManifest = function(mods, fullScan, emuPath, checkFiles) {
{name:"swgemu_preload.cfg", size:0, md5:"", url:"http://www.launchpad2.net/SWGEmu/swgemu_preload.cfg"}
]);
}
request({url:"https://github.com/dpwhittaker/RoC-Launcher/releases/download/Assets/manifest.json", json:true}, function(err, response, body) {
request({url:server.manifestUrl, json:true}, function(err, response, body) {
if (err) return console.error(err);

var allmods = [];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "roc-launcher",
"version": "0.0.17",
"version": "0.9.0",
"description": "Relics of Corbantis Official SWGEMU Launcher",
"main": "main.js",
"scripts": {
Expand Down
6 changes: 5 additions & 1 deletion server.json
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
{"address": "server.relicsofcorbantis.com", "port": "44453"}
{
"address": "server.relicsofcorbantis.com",
"port": "44453",
"manifestUrl": "https://raw.githubusercontent.com/dpwhittaker/RoC-Assets/master/manifest.json"
}

0 comments on commit c6e851f

Please sign in to comment.