From 607cd07b7420e3c373ea30fe7011f62ab35e20b9 Mon Sep 17 00:00:00 2001 From: Mbucari Date: Fri, 19 May 2023 12:08:22 -0600 Subject: [PATCH] Change IInteropFunctions.ReleaseIdentifier to ReleaseIdString --- Source/AppScaffolding/LibationScaffolding.cs | 2 +- Source/LibationFileManager/IInteropFunctions.cs | 2 +- Source/LibationFileManager/NullInteropFunctions.cs | 2 +- Source/LoadByOS/LinuxConfigApp/LinuxInterop.cs | 2 +- Source/LoadByOS/MacOSConfigApp/MacOSInterop.cs | 2 +- Source/LoadByOS/WindowsConfigApp/WinInterop.cs | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/AppScaffolding/LibationScaffolding.cs b/Source/AppScaffolding/LibationScaffolding.cs index a0b1d9c9..e474191f 100644 --- a/Source/AppScaffolding/LibationScaffolding.cs +++ b/Source/AppScaffolding/LibationScaffolding.cs @@ -335,7 +335,7 @@ namespace AppScaffolding try { - regexPattern = releaseIndex.Value(InteropFactory.Create().ReleaseIdentifier); + regexPattern = releaseIndex.Value(InteropFactory.Create().ReleaseIdString); } catch { diff --git a/Source/LibationFileManager/IInteropFunctions.cs b/Source/LibationFileManager/IInteropFunctions.cs index 4ec5a896..a79cc0f3 100644 --- a/Source/LibationFileManager/IInteropFunctions.cs +++ b/Source/LibationFileManager/IInteropFunctions.cs @@ -16,7 +16,7 @@ namespace LibationFileManager Process RunAsRoot(string exe, string args); void InstallUpgrade(string upgradeBundle); bool CanUpgrade { get; } - string ReleaseIdentifier { get; } + string ReleaseIdString { get; } } public class WebViewNavigationEventArgs : EventArgs diff --git a/Source/LibationFileManager/NullInteropFunctions.cs b/Source/LibationFileManager/NullInteropFunctions.cs index 5bab7361..b72e354d 100644 --- a/Source/LibationFileManager/NullInteropFunctions.cs +++ b/Source/LibationFileManager/NullInteropFunctions.cs @@ -15,7 +15,7 @@ namespace LibationFileManager public void SetFolderIcon(string image, string directory) => throw new PlatformNotSupportedException(); public void DeleteFolderIcon(string directory) => throw new PlatformNotSupportedException(); public bool CanUpgrade => throw new PlatformNotSupportedException(); - public string ReleaseIdentifier => throw new PlatformNotSupportedException(); + public string ReleaseIdString => throw new PlatformNotSupportedException(); public Process RunAsRoot(string exe, string args) => throw new PlatformNotSupportedException(); public void InstallUpgrade(string updateBundle) => throw new PlatformNotSupportedException(); } diff --git a/Source/LoadByOS/LinuxConfigApp/LinuxInterop.cs b/Source/LoadByOS/LinuxConfigApp/LinuxInterop.cs index d1c987d0..d005c122 100644 --- a/Source/LoadByOS/LinuxConfigApp/LinuxInterop.cs +++ b/Source/LoadByOS/LinuxConfigApp/LinuxInterop.cs @@ -25,7 +25,7 @@ namespace LinuxConfigApp public void SetFolderIcon(string image, string directory) => throw new PlatformNotSupportedException(); public void DeleteFolderIcon(string directory) => throw new PlatformNotSupportedException(); - public string ReleaseIdentifier => LibationScaffolding.ReleaseIdentifier.ToString() + (File.Exists("/bin/yum") ? "_RPM" : ""); + public string ReleaseIdString => LibationScaffolding.ReleaseIdentifier.ToString() + (File.Exists("/bin/yum") ? "_RPM" : ""); //only run the auto upgrader if the current app was installed from the //.deb or .rpm package. Try to detect this by checking if the symlink exists. diff --git a/Source/LoadByOS/MacOSConfigApp/MacOSInterop.cs b/Source/LoadByOS/MacOSConfigApp/MacOSInterop.cs index e7ca21ef..ca48996a 100644 --- a/Source/LoadByOS/MacOSConfigApp/MacOSInterop.cs +++ b/Source/LoadByOS/MacOSConfigApp/MacOSInterop.cs @@ -24,7 +24,7 @@ namespace MacOSConfigApp //the running process, so don't upgrade unless it's "installed" in /Applications public bool CanUpgrade => Directory.Exists(AppPath); - public string ReleaseIdentifier => AppScaffolding.LibationScaffolding.ReleaseIdentifier.ToString(); + public string ReleaseIdString => AppScaffolding.LibationScaffolding.ReleaseIdentifier.ToString(); public void InstallUpgrade(string upgradeBundle) { diff --git a/Source/LoadByOS/WindowsConfigApp/WinInterop.cs b/Source/LoadByOS/WindowsConfigApp/WinInterop.cs index d99f3cb6..32fce3da 100644 --- a/Source/LoadByOS/WindowsConfigApp/WinInterop.cs +++ b/Source/LoadByOS/WindowsConfigApp/WinInterop.cs @@ -26,7 +26,7 @@ namespace WindowsConfigApp public bool CanUpgrade => true; - public string ReleaseIdentifier => AppScaffolding.LibationScaffolding.ReleaseIdentifier.ToString(); + public string ReleaseIdString => AppScaffolding.LibationScaffolding.ReleaseIdentifier.ToString(); public void InstallUpgrade(string upgradeBundle) {