forked from hexparrot/mineos-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bedrock-wrapper.js
31 lines (25 loc) · 924 Bytes
/
bedrock-wrapper.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// var async = require('async');
var path = require('path');
var fs = require('fs-extra');
var profile = require('./template');
exports.profile = {
name: 'MineOS Bedrock Wrapper',
handler: function(profile_dir, callback) {
var p = [];
try {
var item = {};
item['id'] = 'bedrock-server-wrapper';
item['type'] = 'snapshot';
item['group'] = 'bedrock-wrapper';
item['webui_desc'] = 'Bedrock Server Wrapper';
item['weight'] = 0;
item['filename'] = 'mineos-bedrock-wrapper-1.0-SNAPSHOT.jar';
item['downloaded'] = fs.existsSync(path.join(profile_dir, item.id, item.filename));
item['version'] = 0;
item['release_version'] = '1.0';
item['url'] = 'https://github.com/tucks/mineos-bedrock-wrapper/raw/master/download/latest/mineos-bedrock-wrapper-1.0-SNAPSHOT.jar';
p.push(item);
} catch (e) { }
callback(null, p);
} //end handler
}