mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 11:39:11 +03:00
[FEATURE] Простейшая релаизация UpdateRequest
This commit is contained in:
parent
221666df3e
commit
1da05c49bd
3 changed files with 7 additions and 1 deletions
|
@ -247,6 +247,7 @@ public class NettyConfig {
|
||||||
public int port;
|
public int port;
|
||||||
public boolean clientEnabled;
|
public boolean clientEnabled;
|
||||||
public String launcherURL;
|
public String launcherURL;
|
||||||
|
public String downloadURL;
|
||||||
public String launcherEXEURL;
|
public String launcherEXEURL;
|
||||||
public String address;
|
public String address;
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,6 +32,6 @@ public void execute(WebSocketService service, ChannelHandlerContext ctx, Client
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
service.sendObject(ctx, new UpdateRequestEvent(LaunchServer.server.updatesDirMap.get(dir).object));
|
service.sendObject(ctx, new UpdateRequestEvent(LaunchServer.server.updatesDirMap.get(dir).object, LaunchServer.server.config.netty.downloadURL.concat(dir)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,4 +18,9 @@ public String getType() {
|
||||||
public UpdateRequestEvent(HashedDir hdir) {
|
public UpdateRequestEvent(HashedDir hdir) {
|
||||||
this.hdir = hdir;
|
this.hdir = hdir;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public UpdateRequestEvent(HashedDir hdir, String url) {
|
||||||
|
this.hdir = hdir;
|
||||||
|
this.url = url;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue