|
282 | 282 | <Exec Command="$(PowerShellCommandPrefix) ". $(LibraryToolsFolder)\UpdateModules.ps1 -BuildConfig $(Configuration) -Scope $(Scope) ""
|
283 | 283 | Condition="'$(CodeSign)' == 'false'"/>
|
284 | 284 |
|
285 |
| - <!-- Copying modules to be signed --> |
286 |
| - |
287 |
| - <!-- AzureRM --> |
288 |
| - <Copy SourceFiles="$(LibraryToolsFolder)\AzureRM\AzureRM.psd1" |
289 |
| - DestinationFolder="$(PackageDirectory)\$(Configuration)" |
290 |
| - ContinueOnError="false" |
291 |
| - Condition="'$(Scope)' == 'All' or '$(Scope)' == 'Latest'" /> |
292 |
| - <Copy SourceFiles="$(LibraryToolsFolder)\AzureRM\AzureRM.psm1" |
293 |
| - DestinationFolder="$(PackageDirectory)\$(Configuration)" |
294 |
| - ContinueOnError="false" |
295 |
| - Condition="'$(CodeSign)' == 'false' and '$(Scope)' == 'All' or '$(Scope)' == 'Latest'" /> |
296 |
| - |
297 |
| - <!-- Stack Specific --> |
298 |
| - <Copy SourceFiles="$(LibrarySourceFolder)\StackAdmin\AzureRM\AzureRM.psd1" |
299 |
| - DestinationFolder="$(StackPackageFolder)\$(Configuration)" |
300 |
| - ContinueOnError="false" |
301 |
| - Condition="'$(Scope)' == 'All' or '$(Scope)' == 'Stack'" /> |
302 |
| - |
303 |
| - <Copy SourceFiles="$(LibrarySourceFolder)\StackAdmin\AzureStack\AzureStack.psd1" |
304 |
| - DestinationFolder="$(StackPackageFolder)\$(Configuration)" |
305 |
| - ContinueOnError="false" |
306 |
| - Condition="'$(Scope)' == 'All' or '$(Scope)' == 'Stack'" /> |
307 |
| - |
308 |
| - <CallTarget Targets="CodeSignBinaries" Condition=" '$(CodeSign)' == 'true' " /> |
| 285 | + <CallTarget Targets="CodeSignBinaries" Condition="'$(CodeSign)' == 'true'" /> |
309 | 286 |
|
310 | 287 | <Exec ContinueOnError="false"
|
311 | 288 | Command=""$(PowerShellCommand)" -NonInteractive -NoLogo -NoProfile -Command " . $(LibraryToolsFolder)\NewOutputTypeIndex.ps1 -OutputFile $(PackageDirectory)\outputtypes.json -BuildConfig $(Configuration) ""
|
312 | 289 | Condition="('$(Scope)' == 'All' or '$(Scope)' == 'Latest') and $(CodeSign) == 'true'" />
|
313 | 290 |
|
314 |
| - <!-- AzureRM --> |
315 |
| - <Copy SourceFiles="$(PackageDirectory)\$(Configuration)\AzureRM.psd1" |
316 |
| - DestinationFolder="$(LibraryToolsFolder)\AzureRM" Condition="'$(Scope)' == 'All' or '$(Scope)' == 'Latest'" /> |
317 |
| - <Copy SourceFiles="$(PackageDirectory)\$(Configuration)\AzureRM.psm1" |
318 |
| - DestinationFolder="$(LibraryToolsFolder)\AzureRM" Condition="'$(CodeSign)' == 'false' and '$(Scope)' == 'All' or '$(Scope)' == 'Latest'" /> |
319 |
| - |
320 |
| - <!-- Stack --> |
321 |
| - <Copy SourceFiles="$(StackPackageFolder)\$(Configuration)\AzureRM.psd1" |
322 |
| - DestinationFolder="$(LibrarySourceFolder)\StackAdmin\AzureRM" Condition="'$(Scope)' == 'All' or '$(Scope)' == 'Stack'" /> |
323 |
| - |
324 |
| - <Copy SourceFiles="$(StackPackageFolder)\$(Configuration)\AzureStack.psd1" |
325 |
| - DestinationFolder="$(LibrarySourceFolder)\StackAdmin\AzureStack" Condition="'$(Scope)' == 'All' or '$(Scope)' == 'Stack'" /> |
326 |
| - |
327 | 291 | <Message Importance="high" Text="Running Static Analyser" />
|
328 | 292 | <CallTarget targets="DependencyAnalysis" ContinueOnError="ErrorAndContinue" />
|
329 | 293 | <Exec Command="$(PowerShellCommandPrefix) ". $(LibraryToolsFolder)\CheckAssemblies.ps1 -BuildConfig $(Configuration) "" />
|
|
393 | 357 |
|
394 | 358 | <!-- Update module manifests. -->
|
395 | 359 | <Exec Command="$(PowerShellCoreCommandPrefix) ". $(LibraryToolsFolder)\UpdateModules.ps1 -BuildConfig $(Configuration) -Scope Netcore " "
|
| 360 | + Condition="'$(CodeSign)' == 'false'" |
396 | 361 | ContinueOnError="false" />
|
397 | 362 | <!-- Generate the Help -->
|
398 | 363 | <Exec Command="$(PowerShellCoreCommandPrefix) "Set-Variable -Name ProgressPreference -Value 'SilentlyContinue';. $(LibraryToolsFolder)\GenerateHelp.ps1 -ValidateMarkdownHelp -GenerateMamlHelp -BuildConfig $(Configuration) ""
|
399 | 364 | Condition="'$(SkipHelp)' == 'false'"
|
400 | 365 | ContinueOnError="false"/>
|
401 | 366 |
|
402 |
| - <!-- Copying modules to be signed --> |
403 |
| - <Copy SourceFiles="$(LibraryToolsFolder)\Az\Az.psd1" |
404 |
| - DestinationFolder="$(PackageDirectory)\$(Configuration)" |
405 |
| - ContinueOnError="false" /> |
406 |
| - |
407 |
| - <CallTarget Targets="CodeSignBinaries" Condition=" '$(CodeSign)' == 'true' " /> |
408 |
| - |
409 |
| - <Copy SourceFiles="$(PackageDirectory)\$(Configuration)\Az.psd1" DestinationFolder="$(LibraryToolsFolder)\Az" /> |
| 367 | + <CallTarget Targets="CodeSignBinaries" Condition="'$(CodeSign)' == 'true'" /> |
410 | 368 |
|
411 | 369 | <!-- Cleanup extraneous files. -->
|
412 | 370 | <Exec Command="$(PowerShellCoreCommandPrefix) ". $(LibraryToolsFolder)\CleanupBuild.ps1 -BuildConfig $(Configuration) "" />
|
|
478 | 436 | ContinueOnError="false"
|
479 | 437 | Condition="!$(DelaySign) and '@(DelaySignedAssembliesToSign)' != ''"/>
|
480 | 438 |
|
481 |
| - <Exec Command="$(PowerShellCommandPrefix) ". $(LibraryToolsFolder)\UpdateModules.ps1 -BuildConfig $(Configuration) -Scope $(Scope) "" |
482 |
| - Condition="'$(Scope)' != 'Netcore'"/> |
| 439 | + <Exec Command="$(PowerShellCommandPrefix) ". $(LibraryToolsFolder)\UpdateModules.ps1 -BuildConfig $(Configuration) -Scope $(Scope) ""/> |
483 | 440 |
|
484 | 441 | <!-- Copying shortcut to be signed -->
|
| 442 | + <Copy SourceFiles="$(LibraryRoot)tools\Az\Az.psm1" |
| 443 | + DestinationFolder="$(PackageDirectory)\$(Configuration)" Condition="'$(Scope)' == 'All' or '$(Scope)' == 'Netcore'" /> |
485 | 444 | <Copy SourceFiles="$(LibraryRoot)tools\AzureRM\AzureRM.psm1"
|
486 | 445 | DestinationFolder="$(PackageDirectory)\$(Configuration)" Condition="'$(Scope)' == 'All' or '$(Scope)' == 'Latest'" />
|
| 446 | + <Copy SourceFiles="$(LibrarySourceFolder)\StackAdmin\AzureRM\AzureRM.psm1" |
| 447 | + DestinationFolder="$(StackPackageFolder)\$(Configuration)" Condition="'$(Scope)' == 'All' or '$(Scope)' == 'Stack'" /> |
| 448 | + <Copy SourceFiles="$(LibrarySourceFolder)\StackAdmin\AzureStack\AzureStack.psm1" |
| 449 | + DestinationFolder="$(StackPackageFolder)\$(Configuration)" Condition="'$(Scope)' == 'All' or '$(Scope)' == 'Stack'" /> |
487 | 450 |
|
488 | 451 | <!-- Azure -->
|
489 | 452 | <ItemGroup Condition="'$(Scope)' == 'All' or '$(Scope)' == 'Latest' or '$(Scope)' == 'Netcore'">
|
|
519 | 482 | <Exec Command="$(PowerShellCommandPrefix) ". $(LibraryToolsFolder)\CheckSignature.ps1 -CustomPath $(StackPackageFolder)\$(Configuration) ""
|
520 | 483 | Condition="'$(Scope)' == 'All' or '$(Scope)' == 'Stack'"
|
521 | 484 | ContinueOnError="ErrorAndContinue" />
|
| 485 | + |
| 486 | + <!-- Copy files back after signing --> |
| 487 | + <Copy SourceFiles="$(PackageDirectory)\$(Configuration)\Az.psm1" |
| 488 | + DestinationFolder="$(LibraryRoot)tools\Az" Condition="'$(Scope)' == 'All' or '$(Scope)' == 'Netcore'" /> |
| 489 | + <Copy SourceFiles="$(PackageDirectory)\$(Configuration)\AzureRM.psm1" |
| 490 | + DestinationFolder="$(LibraryRoot)tools\AzureRM" Condition="'$(Scope)' == 'All' or '$(Scope)' == 'Latest'" /> |
| 491 | + <Copy SourceFiles="$(StackPackageFolder)\$(Configuration)\AzureRM.psm1" |
| 492 | + DestinationFolder="$(LibrarySourceFolder)\StackAdmin\AzureRM" Condition="'$(Scope)' == 'All' or '$(Scope)' == 'Stack'" /> |
| 493 | + <Copy SourceFiles="$(StackPackageFolder)\$(Configuration)\AzureStack.psm1" |
| 494 | + DestinationFolder="$(LibrarySourceFolder)\StackAdmin\AzureStack" Condition="'$(Scope)' == 'All' or '$(Scope)' == 'Stack'" /> |
522 | 495 | </Target>
|
523 | 496 |
|
524 | 497 |
|
|
0 commit comments