Begining work on the UI, header is complete.

This commit is contained in:
Daniel Scalzi
2017-05-09 00:56:08 -04:00
parent c41f74f478
commit 8173f85df0
8 changed files with 184 additions and 14 deletions

View File

@@ -0,0 +1,75 @@
{
"version": "1.0",
"servers": [
{
"id": "WesterosCraft-1.11.2",
"name": "WesterosCraft Production Client",
"news-feed": "http://www.westeroscraft.com/api/rss.php?preset_id=12700544",
"icon-url": "http://mc.westeroscraft.com/WesterosCraftLauncher/files/server-prod.png",
"revision": "0.0.1",
"server-ip": "mc.westeroscraft.com",
"mc-version": "1.11.2",
"main-class": "TBD",
"libraries": [
{
"name": "net.minecraftforge.forge.forge-universal:1.11.2-13.20.0.2228",
"required": true,
"artifact": {
"size": 4123353,
"MD5": "5b9105f1a8552beac0c8228203d994ae",
"path": "net/minecraftforge/forge/1.11.2-13.20.0.2228/forge-1.11.2-13.20.0.2228-universal.jar",
"url": "http://files.minecraftforge.net/maven/net/minecraftforge/forge/1.11.2-13.20.0.2228/forge-1.11.2-13.20.0.2228-universal.jar"
},
"launch-args": ["--tweakClass cpw.mods.fml.common.launcher.FMLTweaker"]
},
{
"name": "net.optifine.optifine:1.11.2_HD_U_B8",
"required": true,
"artifact": {
"size": 2050307,
"MD5": "c18c80f8bfa2a440cc5af4ab8816bc4b",
"path": "optifine/OptiFine/1.11.2_HD_U_B8/OptiFine-1.11.2_HD_U_B8.jar",
"url": "http://optifine.net/download.php?f=OptiFine_1.11.2_HD_U_B8.jar"
},
"launch-args": []
}
],
"forgemods": [
{
"name": "MODNAME",
"required": true,
"artifact": {
"size": 1234,
"MD5": "e71e88c744588fdad48d3b3beb4935fc",
"path": "/path/to/lib/modname.jar",
"url": "http://mc.westeroscraft.com/WesterosCraftLauncher/files/1.7.10/launchwrapper-1.11.jar"
}
}
],
"litemods": [
{
"name": "MODNAME",
"required": true,
"artifact": {
"size": 1234,
"MD5": "e71e88c744588fdad48d3b3beb4935fc",
"path": "/path/to/lib/modname.jar",
"url": "http://mc.westeroscraft.com/WesterosCraftLauncher/files/1.7.10/launchwrapper-1.11.jar"
}
}
],
"files": [
{
"name": "FILENAME",
"required": true,
"artifact": {
"size": 1234,
"MD5": "e71e88c744588fdad48d3b3beb4935fc",
"path": "/path/to/lib/filename.jar",
"url": "http://mc.westeroscraft.com/WesterosCraftLauncher/files/1.7.10/launchwrapper-1.11.jar"
}
}
]
}
]
}

View File

@@ -8,15 +8,13 @@ const unzip = require('unzip')
const mkpath = require('mkdirp');
exports.launchMinecraft = function(versionData, basePath){
const authPromise = mojang.auth('nytrocraft@live.com', 'applesrgood123', uuidV4(), {
const authPromise = mojang.auth('EMAIL', 'PASS', uuidV4(), {
name: 'Minecraft',
version: 1
})
authPromise.then(function(data){
const hardcodedargs = ''
const args = finalizeArguments(versionData, data, basePath)
//console.log(data)
//console.log(args)
//TODO make this dynamic
const child = child_process.spawn('C:\\Program Files\\Java\\jre1.8.0_131\\bin\\javaw.exe', args)
})

View File

@@ -1,8 +1,16 @@
var $ = require('jQuery');
const remote = require('electron').remote
const shell = require('electron').shell
//Opens DevTools window if you type "wcdev" in sequence.
//This will crash the program if you are using multiple
//DevTools, for example the chrome debugger in VS Code.
/* Open web links in the user's default browser. */
$(document).on('click', 'a[href^="http"]', function(event) {
event.preventDefault();
shell.openExternal(this.href);
});
/*Opens DevTools window if you type "wcdev" in sequence.
This will crash the program if you are using multiple
DevTools, for example the chrome debugger in VS Code. */
const match = [87, 67, 68, 69, 86]
let at = 0;
@@ -30,6 +38,4 @@ document.addEventListener('keydown', function (e) {
window.toggleDevTools()
at = 0
}
})
console.log('Can you see me? ( ͡° ͜ʖ ͡°) Then it\'s working!')
})