Add release workflow; fix ports when running outside of Docker (#2)

* fix yml formatting

* test build action

* move ci workflow

* fix unit tests from dotnet test command

* add release workflow

* try another matrix syntax

* fix path to csproj

* fix target framework

* more release fixes

* port fixes for running outside of docker
This commit is contained in:
Jason Dove
2021-02-11 02:45:07 +00:00
committed by GitHub
parent 3844177bf5
commit c9ef5f5802
7 changed files with 153 additions and 666 deletions
+12 -1
View File
@@ -51,10 +51,21 @@ namespace ErsatzTV.Core.FFmpeg
private async Task<Option<string>> LocateExecutableOnPathAsync(string executableBase)
{
string locateCommand = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "where" : "which";
string executable = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
? $"{executableBase}.exe"
: executableBase;
string processFileName = Process.GetCurrentProcess().MainModule?.FileName ?? string.Empty;
if (!string.IsNullOrWhiteSpace(processFileName))
{
string localFileName = Path.Combine(Path.GetDirectoryName(processFileName) ?? string.Empty, executable);
if (File.Exists(localFileName))
{
return localFileName;
}
}
string locateCommand = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "where" : "which";
using var p = new Process
{
StartInfo = new ProcessStartInfo