mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Adding --signExclude parameter
This allows the caller to specify a regex pattern to exclude files. When specified the default filter no longer applies
This commit is contained in:
@@ -265,14 +265,14 @@ public class PackWindowsCommandTests : ReleaseCommandTests<WindowsPackCommand>
|
||||
}
|
||||
|
||||
[WindowsOnlyFact]
|
||||
public void SignSkipDll_BareOption_SetsFlag()
|
||||
public void SignExclude_WithPattern_SetsOption()
|
||||
{
|
||||
var command = new WindowsPackCommand();
|
||||
|
||||
string cli = GetRequiredDefaultOptions() + "--signSkipDll";
|
||||
string cli = GetRequiredDefaultOptions() + @"--signExclude \.dll$";
|
||||
ParseResult parseResult = command.ParseAndApply(cli);
|
||||
|
||||
Assert.True(command.SignSkipDll);
|
||||
Assert.Equal(@"\.dll$", command.SignExclude);
|
||||
}
|
||||
|
||||
[WindowsOnlyFact]
|
||||
|
||||
Reference in New Issue
Block a user