Skip to content

Commit 235e11b

Browse files
Include migration tool in module build output
Copy ConvertTo-PSResourceGet.ps1 to the 'migration' subdirectory of the module output during build. The existing signing step already signs all **\*.ps1 files under the output path, so the migration tool will be signed as part of the release pipeline automatically. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent aeb9069 commit 235e11b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

doBuild.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ function DoBuild
5353
Write-Verbose -Verbose -Message "Copying resource manifests to '$BuildOutPath'"
5454
Copy-Item -Path "${SrcPath}/dsc/*.resource.json" -Dest "$BuildOutPath" -Force
5555

56+
# Copy migration tool
57+
$migrationToolOutPath = Join-Path -Path $BuildOutPath -ChildPath "migration"
58+
Write-Verbose -Verbose -Message "Creating migration tool output path: '$migrationToolOutPath'"
59+
$null = New-Item -ItemType Directory -Path $migrationToolOutPath -Force
60+
Write-Verbose -Verbose -Message "Copying ConvertTo-PSResourceGet.ps1 to '$migrationToolOutPath'"
61+
Copy-Item -Path "tool/migration/ConvertTo-PSResourceGet.ps1" -Dest "$migrationToolOutPath" -Force
62+
5663
# Build and place binaries
5764
if ( Test-Path "${SrcPath}/code" ) {
5865
Write-Verbose -Verbose -Message "Building assembly and copying to '$BuildOutPath'"

0 commit comments

Comments
 (0)