Add auto update to linux and macos

This commit is contained in:
Mbucari 2023-02-13 22:25:44 -07:00 committed by Michael Bucari-Tovo
parent 952eee6d32
commit dc7c03661d
26 changed files with 631 additions and 99 deletions

View file

@ -1,4 +1,5 @@
using System;
using System.Diagnostics;
namespace LibationFileManager
{
@ -6,6 +7,8 @@ namespace LibationFileManager
{
void SetFolderIcon(string image, string directory);
void DeleteFolderIcon(string directory);
void CopyTextToClipboard(string text);
Process RunAsRoot(string exe, string args);
void InstallUpdate(string updateBundle);
bool CanUpdate { get; }
}
}

View file

@ -1,14 +1,18 @@
using System;
using System.Diagnostics;
namespace LibationFileManager
{
public class NullInteropFunctions : IInteropFunctions
{
public NullInteropFunctions() { }
public NullInteropFunctions() { }
public NullInteropFunctions(params object[] values) { }
public void SetFolderIcon(string image, string directory) => throw new PlatformNotSupportedException();
public void DeleteFolderIcon(string directory) => throw new PlatformNotSupportedException();
public void CopyTextToClipboard(string text) => throw new PlatformNotSupportedException();
}
public bool CanUpdate => throw new PlatformNotSupportedException();
public Process RunAsRoot(string exe, string args) => throw new PlatformNotSupportedException();
public void InstallUpdate(string updateBundle) => throw new PlatformNotSupportedException();
}
}