mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-01-10 17:49:40 +03:00
24 lines
653 B
Java
24 lines
653 B
Java
package pro.gravit.launchserver.binary;
|
|
|
|
import java.io.IOException;
|
|
import java.nio.file.Files;
|
|
|
|
import pro.gravit.launchserver.LaunchServer;
|
|
import pro.gravit.utils.helper.IOHelper;
|
|
import pro.gravit.utils.helper.LogHelper;
|
|
|
|
public class EXELauncherBinary extends LauncherBinary {
|
|
|
|
public EXELauncherBinary(LaunchServer server) {
|
|
super(server, LauncherBinary.resolve(server, ".exe"));
|
|
}
|
|
|
|
@Override
|
|
public void build() throws IOException {
|
|
if (IOHelper.isFile(syncBinaryFile)) {
|
|
LogHelper.subWarning("Deleting obsolete launcher EXE binary file");
|
|
Files.delete(syncBinaryFile);
|
|
}
|
|
}
|
|
|
|
}
|