remove self update on linux for now

This commit is contained in:
Lion Kortlepel 2024-06-18 08:51:23 +02:00
parent 82e58e6513
commit bb04d1bfe1
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B

View File

@ -165,6 +165,9 @@ void CheckForUpdates(int argc, char* args[], const std::string& CV) {
if (FileHash != LatestHash && VersionParser(LatestVersion) > VersionParser(GetVer() + GetPatch())) { if (FileHash != LatestHash && VersionParser(LatestVersion) > VersionParser(GetVer() + GetPatch())) {
info("Launcher update found!"); info("Launcher update found!");
#if defined(__linux__)
error("Auto update is NOT implemented for the Linux version. Please update manually ASAP as updates contain security patches.");
#else
fs::remove(Back); fs::remove(Back);
fs::rename(EP, Back); fs::rename(EP, Back);
info("Downloading Launcher update " + LatestHash); info("Downloading Launcher update " + LatestHash);
@ -174,6 +177,7 @@ void CheckForUpdates(int argc, char* args[], const std::string& CV) {
+ PublicKey + "&branch=" + Branch, + PublicKey + "&branch=" + Branch,
EP); EP);
URelaunch(argc, args); URelaunch(argc, args);
#endif
} else } else
info("Launcher version is up to date"); info("Launcher version is up to date");
TraceBack++; TraceBack++;