* Initial work

* Fix CIs

* Fix warnings

* Update .travis.yml

* Update dockerfiles

* Update libraries to .NET 5.0

* Misc

* Remove workaround for #1812

* Update cc.sh

* CI updates

* CI updates

* Update .travis.yml
This commit is contained in:
Łukasz Domeradzki
2020-11-10 23:22:57 +01:00
committed by GitHub
parent 9a248858a5
commit 35f4651ed6
26 changed files with 115 additions and 176 deletions

View File

@@ -27,6 +27,7 @@ using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Security.Cryptography;
using System.Text;
using System.Threading;
@@ -337,7 +338,7 @@ namespace ArchiSteamFarm {
return null;
}
if (OS.IsUnix) {
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) || RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) {
string executable = Path.Combine(SharedInfo.HomeDirectory, SharedInfo.AssemblyName);
if (File.Exists(executable)) {
@@ -436,6 +437,10 @@ namespace ArchiSteamFarm {
throw new ArgumentNullException(nameof(sender) + " || " + nameof(e));
}
if (string.IsNullOrEmpty(e.Name)) {
throw new ArgumentNullException(nameof(e.Name));
}
await OnChangedFile(e.Name, e.FullPath).ConfigureAwait(false);
}
@@ -498,6 +503,10 @@ namespace ArchiSteamFarm {
throw new ArgumentNullException(nameof(sender) + " || " + nameof(e));
}
if (string.IsNullOrEmpty(e.Name)) {
throw new ArgumentNullException(nameof(e.Name));
}
await OnCreatedFile(e.Name, e.FullPath).ConfigureAwait(false);
}
@@ -604,6 +613,10 @@ namespace ArchiSteamFarm {
throw new ArgumentNullException(nameof(sender) + " || " + nameof(e));
}
if (string.IsNullOrEmpty(e.Name)) {
throw new ArgumentNullException(nameof(e.Name));
}
await OnDeletedFile(e.Name, e.FullPath).ConfigureAwait(false);
}
@@ -700,6 +713,10 @@ namespace ArchiSteamFarm {
throw new ArgumentNullException(nameof(sender) + " || " + nameof(e));
}
if (string.IsNullOrEmpty(e.OldName) || string.IsNullOrEmpty(e.Name)) {
throw new ArgumentNullException(nameof(e.OldName) + " || " + nameof(e.Name));
}
await OnDeletedFile(e.OldName, e.OldFullPath).ConfigureAwait(false);
await OnCreatedFile(e.Name, e.FullPath).ConfigureAwait(false);
}