|
210 | 210 | <CallTarget Targets="BuildSetupTest"/>
|
211 | 211 | <!-- moved copy tasks -->
|
212 | 212 |
|
213 |
| - <Exec Command=""$(PowerShellCommand)" -NonInteractive -NoLogo -NoProfile -Command ". $(LibraryToolsFolder)\UpdateModules.ps1 $(Configuration) $(Scope) -Profile Latest " " Condition="'$(Latest)' == 'true' "/> |
214 |
| - <Exec Command=""$(PowerShellCommand)" -NonInteractive -NoLogo -NoProfile -Command ". $(LibraryToolsFolder)\UpdateModules.ps1 $(Configuration) $(Scope) -Profile Stack " " Condition="'$(Stack)' == 'true' "/> |
| 213 | + <Exec Command=""$(PowerShellCommand)" -NonInteractive -NoLogo -NoProfile -Command ". $(LibraryToolsFolder)\UpdateModules.ps1 $(Configuration) $(Scope) -Profile Latest " " Condition="'$(Latest)' == 'true' and '$(CodeSign)' == 'false'"/> |
| 214 | + <Exec Command=""$(PowerShellCommand)" -NonInteractive -NoLogo -NoProfile -Command ". $(LibraryToolsFolder)\UpdateModules.ps1 $(Configuration) $(Scope) -Profile Stack " " Condition="'$(Stack)' == 'true' and '$(CodeSign)' == 'false'"/> |
215 | 215 | <!-- Copying shortcut to be signed -->
|
216 | 216 | <Copy SourceFiles="$(LibraryRoot)tools\AzureRM\AzureRM.psd1"
|
217 | 217 | DestinationFolder="$(LibrarySourceFolder)\Package\$(Configuration)" Condition= " '$(NetCore)' == 'false' and '$(Latest)' == 'true'"/>
|
218 | 218 | <Copy SourceFiles="$(LibraryRoot)tools\AzureRM\AzureRM.psm1"
|
219 |
| - DestinationFolder="$(LibrarySourceFolder)\Package\$(Configuration)" Condition= " '$(NetCore)' == 'false' and '$(Latest)' == 'true'"/> |
| 219 | + DestinationFolder="$(LibrarySourceFolder)\Package\$(Configuration)" Condition= " '$(NetCore)' == 'false' and '$(Latest)' == 'true' and '$(CodeSign)' == 'false'"/> |
220 | 220 |
|
221 | 221 | <Copy SourceFiles="$(LibrarySourceFolder)\StackAdmin\AzureRM\AzureRM.psd1"
|
222 | 222 | DestinationFolder="$(LibrarySourceFolder)\Stack\$(Configuration)" Condition= " '$(NetCore)' == 'false' and '$(Stack)' == 'true' "/>
|
223 | 223 | <Copy SourceFiles="$(LibrarySourceFolder)\StackAdmin\AzureRM\AzureRM.psm1"
|
224 |
| - DestinationFolder="$(LibrarySourceFolder)\Stack\$(Configuration)" Condition= " '$(NetCore)' == 'false' and '$(Stack)' == 'true' "/> |
| 224 | + DestinationFolder="$(LibrarySourceFolder)\Stack\$(Configuration)" Condition= " '$(NetCore)' == 'false' and '$(Stack)' == 'true' and '$(CodeSign)' == 'false'"/> |
225 | 225 | <Copy SourceFiles="$(LibrarySourceFolder)\StackAdmin\AzureStack\AzureStack.psd1"
|
226 | 226 | DestinationFolder="$(LibrarySourceFolder)\Stack\$(Configuration)" Condition= " '$(NetCore)' == 'false' and '$(Stack)' == 'true' "/>
|
227 | 227 | <Copy SourceFiles="$(LibrarySourceFolder)\StackAdmin\AzureStack\AzureStack.psm1"
|
228 |
| - DestinationFolder="$(LibrarySourceFolder)\Stack\$(Configuration)" Condition= " '$(NetCore)' == 'false' and '$(Stack)' == 'true' "/> |
| 228 | + DestinationFolder="$(LibrarySourceFolder)\Stack\$(Configuration)" Condition= " '$(NetCore)' == 'false' and '$(Stack)' == 'true' and '$(CodeSign)' == 'false'"/> |
229 | 229 |
|
230 | 230 | <Copy SourceFiles="$(LibraryRoot)setup\Setup\RemoveGalleryModules.ps1"
|
231 | 231 | DestinationFolder="$(LibrarySourceFolder)\Package\$(Configuration)"
|
|
381 | 381 | <DelaySignedAssembliesToSign Include="$(LibrarySourceFolder)\Stack\$(Configuration)\**\Microsoft*Azure*Commands*.dll" Condition="'$(Stack)' == 'true' " />
|
382 | 382 | <DelaySignedAssembliesToSign Include="$(LibrarySourceFolder)\Stack\$(Configuration)\**\Microsoft.Azure.Common.Extensions.dll" Condition="'$(Stack)' == 'true' " />
|
383 | 383 | <DelaySignedAssembliesToSign Include="$(LibrarySourceFolder)\Stack\$(Configuration)\**\Microsoft.Azure.Management.Sql.Legacy.dll" Condition="'$(Stack)' == 'true' " />
|
384 |
| - |
385 |
| - <ScriptsToSign Include="$(LibrarySourceFolder)\Package\$(Configuration)\**\*.ps1" Condition="'$(Latest)' == 'true' " /> |
386 |
| - <ScriptsToSign Include="$(LibrarySourceFolder)\Package\$(Configuration)\**\*.psm1" Condition="'$(Latest)' == 'true' " /> |
387 |
| - <ScriptsToSign Include="$(LibrarySourceFolder)\Package\$(Configuration)\**\*.ps1xml" Condition="'$(Latest)' == 'true' " /> |
388 |
| - <ScriptsToSign Include="$(LibrarySourceFolder)\Package\$(Configuration)\**\*.js" Condition="'$(Latest)' == 'true' " /> |
389 |
| - <ScriptsToSign Include="$(LibraryRoot)setup\Setup\*.ps1" Condition="'$(Latest)' == 'true' "/> |
390 |
| - |
391 |
| - <ScriptsToSign Include="$(LibrarySourceFolder)\Stack\$(Configuration)\**\*.ps1" Condition="'$(Stack)' == 'true' "/> |
392 |
| - <ScriptsToSign Include="$(LibrarySourceFolder)\Stack\$(Configuration)\**\*.psm1" Condition="'$(Stack)' == 'true' " /> |
393 |
| - <ScriptsToSign Include="$(LibrarySourceFolder)\Stack\$(Configuration)\**\*.ps1xml" Condition="'$(Stack)' == 'true' " /> |
394 |
| - <ScriptsToSign Include="$(LibrarySourceFolder)\Stack\$(Configuration)\**\*.js" Condition="'$(Stack)' == 'true' " /> |
395 |
| - <!-- <ScriptsToSign Include="$(LibraryRoot)stacksetup\Setup\*.ps1" Condition="'$(Stack)' == 'true' " /> --> |
396 | 384 | </ItemGroup>
|
397 | 385 |
|
398 | 386 | <Message Importance="high" Text="$(LibrarySourceFolder)\Package\$(Configuration) does not contains any files to sign. Code sign will skip."
|
|
417 | 405 | ToolsPath="$(CIToolsPath)"
|
418 | 406 | Condition="!$(DelaySign) and '@(DelaySignedAssembliesToSign)' != ''"/>
|
419 | 407 |
|
| 408 | + <ValidateStrongNameSignatureTask |
| 409 | + WindowsSdkPath="$(WindowsSdkPath)" |
| 410 | + Assembly="%(DelaySignedAssembliesToSign.Identity)" |
| 411 | + ExpectedTokenSignature="$(StrongNameToken)" |
| 412 | + ExpectedDelaySigned="false" |
| 413 | + ContinueOnError="false" |
| 414 | + Condition="!$(DelaySign) and '@(DelaySignedAssembliesToSign)' != ''"/> |
| 415 | + |
| 416 | + <Exec Command=""$(PowerShellCommand)" -NonInteractive -NoLogo -NoProfile -Command ". $(LibraryToolsFolder)\UpdateModules.ps1 $(Configuration) $(Scope) -Profile Latest " " Condition="'$(Latest)' == 'true' "/> |
| 417 | + <Exec Command=""$(PowerShellCommand)" -NonInteractive -NoLogo -NoProfile -Command ". $(LibraryToolsFolder)\UpdateModules.ps1 $(Configuration) $(Scope) -Profile Stack " " Condition="'$(Stack)' == 'true' "/> |
| 418 | + |
| 419 | + <!-- Copying shortcut to be signed --> |
| 420 | + <Copy SourceFiles="$(LibraryRoot)tools\AzureRM\AzureRM.psm1" |
| 421 | + DestinationFolder="$(LibrarySourceFolder)\Package\$(Configuration)" Condition= " '$(NetCore)' == 'false' and '$(Latest)' == 'true' "/> |
| 422 | + <Copy SourceFiles="$(LibrarySourceFolder)\StackAdmin\AzureRM\AzureRM.psm1" |
| 423 | + DestinationFolder="$(LibrarySourceFolder)\Stack\$(Configuration)" Condition= " '$(NetCore)' == 'false' and '$(Stack)' == 'true' "/> |
| 424 | + <Copy SourceFiles="$(LibrarySourceFolder)\StackAdmin\AzureStack\AzureStack.psm1" |
| 425 | + DestinationFolder="$(LibrarySourceFolder)\Stack\$(Configuration)" Condition= " '$(NetCore)' == 'false' and '$(Stack)' == 'true' "/> |
| 426 | + |
| 427 | + <ItemGroup> |
| 428 | + <ScriptsToSign Include="$(LibrarySourceFolder)\Package\$(Configuration)\**\*.ps1" Condition="'$(Latest)' == 'true' " /> |
| 429 | + <ScriptsToSign Include="$(LibrarySourceFolder)\Package\$(Configuration)\**\*.psm1" Condition="'$(Latest)' == 'true' " /> |
| 430 | + <ScriptsToSign Include="$(LibrarySourceFolder)\Package\$(Configuration)\**\*.ps1xml" Condition="'$(Latest)' == 'true' " /> |
| 431 | + <ScriptsToSign Include="$(LibrarySourceFolder)\Package\$(Configuration)\**\*.js" Condition="'$(Latest)' == 'true' " /> |
| 432 | + <ScriptsToSign Include="$(LibraryRoot)setup\Setup\*.ps1" Condition="'$(Latest)' == 'true' "/> |
| 433 | + |
| 434 | + <ScriptsToSign Include="$(LibrarySourceFolder)\Stack\$(Configuration)\**\*.ps1" Condition="'$(Stack)' == 'true' "/> |
| 435 | + <ScriptsToSign Include="$(LibrarySourceFolder)\Stack\$(Configuration)\**\*.psm1" Condition="'$(Stack)' == 'true' " /> |
| 436 | + <ScriptsToSign Include="$(LibrarySourceFolder)\Stack\$(Configuration)\**\*.ps1xml" Condition="'$(Stack)' == 'true' " /> |
| 437 | + <ScriptsToSign Include="$(LibrarySourceFolder)\Stack\$(Configuration)\**\*.js" Condition="'$(Stack)' == 'true' " /> |
| 438 | + <!-- <ScriptsToSign Include="$(LibraryRoot)stacksetup\Setup\*.ps1" Condition="'$(Stack)' == 'true' " /> --> |
| 439 | + </ItemGroup> |
| 440 | + |
420 | 441 | <CodeSigningTask
|
421 | 442 | Description="Microsoft Azure PowerShell"
|
422 | 443 | Keywords="Microsoft Azure PowerShell"
|
|
428 | 449 | ToolsPath="$(CIToolsPath)"
|
429 | 450 | Condition="!$(DelaySign) and '@(ScriptsToSign)' != ''"/>
|
430 | 451 |
|
431 |
| - <ValidateStrongNameSignatureTask |
432 |
| - WindowsSdkPath="$(WindowsSdkPath)" |
433 |
| - Assembly="%(DelaySignedAssembliesToSign.Identity)" |
434 |
| - ExpectedTokenSignature="$(StrongNameToken)" |
435 |
| - ExpectedDelaySigned="false" |
436 |
| - ContinueOnError="false" |
437 |
| - Condition="!$(DelaySign) and '@(DelaySignedAssembliesToSign)' != ''"/> |
438 |
| - |
439 | 452 | <!-- We cannot verify .js files using Get-AuthenticodeSignature -->
|
440 | 453 | <VerifyAuthenticodeSignatureTask ProbingDirectory="$(PackageDirectory)\$(Configuration)"
|
441 | 454 | FileFilterPattern="microsoft.*.dll;system.*.dll;*.ps1;*.psm1;*.ps1xml;PowerShellSetup.Test.dll" Condition="'$(Latest)' == 'true'">
|
|
0 commit comments