Skip to content

Commit

Permalink
use .net8 OSMMapProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
bassmaster187 committed Oct 6, 2024
1 parent 8dc6690 commit 0f6935b
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions TeslaLogger/OSMMapProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,29 @@ public override void CreateParkingMap(double lat, double lng, int width, int hei

private static void GetOSMMapGeneratorFilename(out string fileName, out string arguments)
{
fileName = "/usr/bin/mono";
arguments = "/etc/teslalogger/OSMMapGenerator.exe ";
if (Tools.IsMono())
{
fileName = "/usr/bin/mono";
arguments = "/etc/teslalogger/OSMMapGenerator.exe ";

if (!Tools.IsMono())
if (!Tools.IsMono())
{
var f = new FileInfo("../../../OSMMapGenerator/bin/Debug/OSMMapGenerator.exe");
fileName = f.FullName;
arguments = "";
}
}
else
{
var f = new FileInfo("../../../OSMMapGenerator/bin/Debug/OSMMapGenerator.exe");
fileName = f.FullName;
arguments = "";
fileName = "/home/cli/dotnet";
arguments = "/etc/teslalogger/OSMMapGenerator.exe ";

if (!Tools.IsMono())
{
var f = new FileInfo("OSMMapGeneratorNET8.dll");
fileName = f.FullName;
arguments = "";
}
}
}

Expand Down

0 comments on commit 0f6935b

Please sign in to comment.