mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-29 21:39:34 +02:00
Osx updater now updates plist file to point to the correct executable binary.
This commit is contained in:
@@ -120,6 +120,13 @@ namespace NzbDrone.Update.UpdateEngine
|
|||||||
if (OsInfo.IsOsx)
|
if (OsInfo.IsOsx)
|
||||||
{
|
{
|
||||||
_diskProvider.SetPermissions(Path.Combine(installationFolder, "Radarr"), "0755", null, null);
|
_diskProvider.SetPermissions(Path.Combine(installationFolder, "Radarr"), "0755", null, null);
|
||||||
|
var plistPath = Path.Combine(installationFolder, "..", "Info.plist");
|
||||||
|
var plistContents = File.ReadAllText(plistPath);
|
||||||
|
if (plistContents.Contains("Sonarr"))
|
||||||
|
{
|
||||||
|
plistContents.Replace("Sonarr", "Radarr");
|
||||||
|
File.WriteAllText(plistPath, plistContents);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
Reference in New Issue
Block a user