fix plugin packer when relative path provided

This commit is contained in:
Kukks 2023-02-02 10:13:56 +01:00
parent ae7b621e3d
commit 6e42eaa26c
No known key found for this signature in database
GPG Key ID: 8E5530D9D1C93097

View File

@ -28,7 +28,7 @@ namespace BTCPayServer.PluginPacker
var name = args[1]; var name = args[1];
var outputDir = Path.Combine(args[2], name); var outputDir = Path.Combine(args[2], name);
var outputFile = Path.Combine(outputDir, name); var outputFile = Path.Combine(outputDir, name);
var rootDLLPath = Path.Combine(directory, name + ".dll"); var rootDLLPath = Path.GetFullPath(Path.Combine(directory, name + ".dll"));
if (!File.Exists(rootDLLPath)) if (!File.Exists(rootDLLPath))
{ {
throw new Exception($"{rootDLLPath} could not be found"); throw new Exception($"{rootDLLPath} could not be found");