Final fixes.

This commit is contained in:
zaxar163 2019-01-06 21:27:13 +04:00
parent 6fec76c07f
commit 9286fed583
No known key found for this signature in database
GPG key ID: CEE900027AE098E0
2 changed files with 24 additions and 17 deletions

View file

@ -11,9 +11,11 @@
public class UnpackBuildTask implements LauncherBuildTask {
private final LaunchServer server;
private final Path result;
public UnpackBuildTask(LaunchServer server) {
this.server = server;
result = server.dir.resolve(server.config.binaryName + "-clean.jar");
}
@Override
@ -23,9 +25,8 @@ public String getName() {
@Override
public Path process(Path inputFile) throws IOException {
Path result = server.dir.resolve(server.config.binaryName + "-clean.jar");
URL url = IOHelper.getResourceURL("Launcher.jar");
UnpackHelper.unpack(url, result);
UnpackHelper.unpack(IOHelper.getResourceURL("Launcher.jar"), result);
tryUnpack();
return result;
}

View file

@ -1,14 +1,22 @@
{
"port": 7240,
"authHandler": {
"type": "memory"
},
"address": "xx.xx",
"bindAddress": "0.0.0.0",
"projectName": "XXX",
"mirrors": [
"http://mirror.gravitlauncher.ml/"
],
"binaryName": "Launcher",
"env": "STD",
"authProvider": [
{
"message": "Настройте authProvider",
"type": "reject"
}
],
"authHandler": {
"type": "memory"
},
"permissionsHandler": {
"filename": "permissions.json",
"type": "json"
@ -21,12 +29,14 @@
"hwidHandler": {
"type": "accept"
},
"threadCount": 0,
"threadCount": 2,
"threadCoreCount": 0,
"launch4j": {
"enabled": false,
"fileDesc": "GravitLauncher 4.1.0",
"fileVer": "4.1.0",
"productName": "GravitLauncher",
"productVer": "4.2.0.0",
"fileDesc": "GravitLauncher 4.2.0",
"fileVer": "4.2.0.0",
"internalName": "Launcher",
"copyright": "© GravitLauncher Team",
"trademarks": "This product is licensed under GPLv3",
@ -44,12 +54,8 @@
"genMappings": false,
"isUsingWrapper": false,
"isDownloadJava": false,
"mirrors": [
"http://mirror.gravitlauncher.ml/"
],
"binaryName": "Launcher",
"address": "localhost",
"bindAddress": "0.0.0.0",
"env": "STD",
"isWarningMissArchJava": false
"isWarningMissArchJava": false,
"enabledProGuard": true,
"stripLineNumbers": true,
"startScript": ".\\start.sh"
}