fix: linux pack not working without custom AppDir

This commit is contained in:
Caelan
2024-01-23 20:42:26 +00:00
parent 5978e6d91f
commit 06f443ab6a

View File

@@ -83,8 +83,11 @@ namespace Velopack.Vpk.Commands
.SetDescription("Set the delta generation mode.");
var appDir = AddOption<DirectoryInfo>((v) => {
PackDirectory = v.ToFullNameOrNull();
PackIsAppDir = true;
var t = v.ToFullNameOrNull();
if (t != null) {
PackDirectory = t;
PackIsAppDir = true;
}
}, "--appDir")
.SetDescription("Directory containing application in .AppDir format")
.SetArgumentHelpName("DIR")