mirror of
https://github.com/Radarr/Radarr
synced 2025-01-01 04:45:35 +00:00
Osx updater now updates plist file to point to the correct executable binary.
This commit is contained in:
parent
6210c5b8f8
commit
5200758200
1 changed files with 7 additions and 0 deletions
|
@ -120,6 +120,13 @@ public void Start(string installationFolder, int processId)
|
|||
if (OsInfo.IsOsx)
|
||||
{
|
||||
_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)
|
||||
|
|
Loading…
Reference in a new issue