Change IInteropFunctions.ReleaseIdentifier to ReleaseIdString

This commit is contained in:
Mbucari 2023-05-19 12:08:22 -06:00
parent 64d080336c
commit 607cd07b74
6 changed files with 6 additions and 6 deletions

View File

@ -335,7 +335,7 @@ namespace AppScaffolding
try try
{ {
regexPattern = releaseIndex.Value<string>(InteropFactory.Create().ReleaseIdentifier); regexPattern = releaseIndex.Value<string>(InteropFactory.Create().ReleaseIdString);
} }
catch catch
{ {

View File

@ -16,7 +16,7 @@ namespace LibationFileManager
Process RunAsRoot(string exe, string args); Process RunAsRoot(string exe, string args);
void InstallUpgrade(string upgradeBundle); void InstallUpgrade(string upgradeBundle);
bool CanUpgrade { get; } bool CanUpgrade { get; }
string ReleaseIdentifier { get; } string ReleaseIdString { get; }
} }
public class WebViewNavigationEventArgs : EventArgs public class WebViewNavigationEventArgs : EventArgs

View File

@ -15,7 +15,7 @@ namespace LibationFileManager
public void SetFolderIcon(string image, string directory) => throw new PlatformNotSupportedException(); public void SetFolderIcon(string image, string directory) => throw new PlatformNotSupportedException();
public void DeleteFolderIcon(string directory) => throw new PlatformNotSupportedException(); public void DeleteFolderIcon(string directory) => throw new PlatformNotSupportedException();
public bool CanUpgrade => 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 Process RunAsRoot(string exe, string args) => throw new PlatformNotSupportedException();
public void InstallUpgrade(string updateBundle) => throw new PlatformNotSupportedException(); public void InstallUpgrade(string updateBundle) => throw new PlatformNotSupportedException();
} }

View File

@ -25,7 +25,7 @@ namespace LinuxConfigApp
public void SetFolderIcon(string image, string directory) => throw new PlatformNotSupportedException(); public void SetFolderIcon(string image, string directory) => throw new PlatformNotSupportedException();
public void DeleteFolderIcon(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 //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. //.deb or .rpm package. Try to detect this by checking if the symlink exists.

View File

@ -24,7 +24,7 @@ namespace MacOSConfigApp
//the running process, so don't upgrade unless it's "installed" in /Applications //the running process, so don't upgrade unless it's "installed" in /Applications
public bool CanUpgrade => Directory.Exists(AppPath); 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) public void InstallUpgrade(string upgradeBundle)
{ {

View File

@ -26,7 +26,7 @@ namespace WindowsConfigApp
public bool CanUpgrade => true; public bool CanUpgrade => true;
public string ReleaseIdentifier => AppScaffolding.LibationScaffolding.ReleaseIdentifier.ToString(); public string ReleaseIdString => AppScaffolding.LibationScaffolding.ReleaseIdentifier.ToString();
public void InstallUpgrade(string upgradeBundle) public void InstallUpgrade(string upgradeBundle)
{ {