Launcher/LaunchServer/src/main/java/ru/gravit/launchserver/binary/EXELauncherBinary.java

25 lines
635 B
Java
Raw Normal View History

2018-09-17 10:07:32 +03:00
package ru.gravit.launchserver.binary;
import java.io.IOException;
import java.nio.file.Files;
2018-09-17 10:20:34 +03:00
import ru.gravit.utils.helper.IOHelper;
import ru.gravit.utils.helper.LogHelper;
2018-09-17 10:07:32 +03:00
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);
}
}
}