mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-16 20:19:13 +03:00
24 lines
656 B
Java
24 lines
656 B
Java
package ru.gravit.launchserver.binary;
|
|
|
|
import java.io.IOException;
|
|
import java.nio.file.Files;
|
|
|
|
import ru.gravit.utils.helper.IOHelper;
|
|
import ru.gravit.utils.helper.LogHelper;
|
|
import ru.gravit.launchserver.LaunchServer;
|
|
|
|
public class EXELauncherBinary extends LauncherBinary {
|
|
|
|
public EXELauncherBinary(LaunchServer server) {
|
|
super(server, server.dir.resolve(server.config.binaryName + ".exe"));
|
|
}
|
|
|
|
@Override
|
|
public void build() throws IOException {
|
|
if (IOHelper.isFile(binaryFile)) {
|
|
LogHelper.subWarning("Deleting obsolete launcher EXE binary file");
|
|
Files.delete(binaryFile);
|
|
}
|
|
}
|
|
|
|
}
|