mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-18 13:26:47 +01:00
fix plugin packer when relative path provided
This commit is contained in:
parent
ae7b621e3d
commit
6e42eaa26c
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user