Skip to content

Commit

Permalink
Fix VS standalone bundle.
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyONeal committed Mar 26, 2024
1 parent 807d527 commit 3b5b3d5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
13 changes: 11 additions & 2 deletions azure-pipelines/signing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ extends:
inputs:
pwsh: true
filePath: vcpkg-init/mint-standalone-bundle.ps1
arguments: '-DestinationTarball "$(Build.BinariesDirectory)\vcpkg-standalone-bundle.tar.gz" -TempDir standalone-temp -SignedFilesRoot "$(Build.BinariesDirectory)" -Deployment OneLiner -VcpkgBaseVersion "$(VCPKG_INITIAL_BASE_VERSION)"'
arguments: '-DestinationTarball "$(Build.BinariesDirectory)\vcpkg-standalone-bundle.tar.gz" -TempDir standalone-temp -ArchIndependentSignedFilesRoot "$(Build.BinariesDirectory)" -Deployment OneLiner -VcpkgBaseVersion "$(VCPKG_INITIAL_BASE_VERSION)"'
- script: |
mkdir "$(Build.ArtifactStagingDirectory)\staging"
mkdir "$(Build.ArtifactStagingDirectory)\staging\scripts"
Expand Down Expand Up @@ -210,6 +210,9 @@ extends:
VCPKG_STANDALONE_BUNDLE_SHA: $[ dependencies.arch_independent.outputs['shas.VCPKG_STANDALONE_BUNDLE_SHA'] ]
VCPKG_BASE_VERSION: $[ dependencies.arch_independent.outputs['versions.VCPKG_BASE_VERSION'] ]
templateContext:
mb:
signing:
enabled: false
outputs:
- output: pipelineArtifact
displayName: 'Publish Unsigned MacOS Binary'
Expand All @@ -236,6 +239,9 @@ extends:
VCPKG_STANDALONE_BUNDLE_SHA: $[ dependencies.arch_independent.outputs['shas.VCPKG_STANDALONE_BUNDLE_SHA'] ]
VCPKG_BASE_VERSION: $[ dependencies.arch_independent.outputs['versions.VCPKG_BASE_VERSION'] ]
templateContext:
mb:
signing:
enabled: false
outputs:
- output: pipelineArtifact
displayName: 'Publish Unsigned glibc Binary'
Expand Down Expand Up @@ -266,6 +272,9 @@ extends:
VCPKG_STANDALONE_BUNDLE_SHA: $[ dependencies.arch_independent.outputs['shas.VCPKG_STANDALONE_BUNDLE_SHA'] ]
VCPKG_BASE_VERSION: $[ dependencies.arch_independent.outputs['versions.VCPKG_BASE_VERSION'] ]
templateContext:
mb:
signing:
enabled: false
outputs:
- output: pipelineArtifact
displayName: 'Publish Unsigned muslc Binary'
Expand Down Expand Up @@ -412,7 +421,7 @@ extends:
inputs:
pwsh: true
filePath: vcpkg-init/mint-standalone-bundle.ps1
arguments: '-DestinationDir "$(Build.ArtifactStagingDirectory)/vs-insertion/staging" -TempDir standalone-temp -SignedFilesRoot "$(Build.ArtifactStagingDirectory)\staging" -Deployment "VisualStudio" -VcpkgBaseVersion "$(VCPKG_BASE_VERSION)"'
arguments: '-DestinationDir "$(Build.ArtifactStagingDirectory)/vs-insertion/staging" -TempDir standalone-temp -ArchIndependentSignedFilesRoot "$(Build.ArtifactStagingDirectory)\stagingArchIndependent" -Deployment "VisualStudio" -VcpkgBaseVersion "$(VCPKG_BASE_VERSION)"'
- task: CmdLine@2
displayName: 'Arrange Drop and Symbols'
inputs:
Expand Down
16 changes: 8 additions & 8 deletions vcpkg-init/mint-standalone-bundle.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Param(
[Parameter(Mandatory = $True)]
[string]$Deployment,
[Parameter(Mandatory = $True)]
[string]$SignedFilesRoot,
[string]$ArchIndependentSignedFilesRoot,
[Parameter(Mandatory = $true)]
[string]$VcpkgBaseVersion
)
Expand Down Expand Up @@ -85,12 +85,12 @@ try {
Set-Content -Path "out/vcpkg-version.txt" -Value $VcpkgBaseVersion -NoNewLine -Encoding Ascii
Copy-Item -Path "$PSScriptRoot/../NOTICE.txt" -Destination 'out/NOTICE.txt'
Copy-Item -Path "$PSScriptRoot/vcpkg-cmd.cmd" -Destination 'out/vcpkg-cmd.cmd'
Copy-Item -Path "$SignedFilesRoot/vcpkg-init" -Destination 'out/vcpkg-init'
Copy-Item -Path "$SignedFilesRoot/vcpkg-init.ps1" -Destination 'out/vcpkg-init.ps1'
Copy-Item -Path "$SignedFilesRoot/vcpkg-init.cmd" -Destination 'out/vcpkg-init.cmd'
Copy-Item -Path "$SignedFilesRoot/scripts/addPoshVcpkgToPowershellProfile.ps1" -Destination 'out/scripts/addPoshVcpkgToPowershellProfile.ps1'
Copy-Item -Path "$ArchIndependentSignedFilesRoot/vcpkg-init" -Destination 'out/vcpkg-init'
Copy-Item -Path "$ArchIndependentSignedFilesRoot/vcpkg-init.ps1" -Destination 'out/vcpkg-init.ps1'
Copy-Item -Path "$ArchIndependentSignedFilesRoot/vcpkg-init.cmd" -Destination 'out/vcpkg-init.cmd'
Copy-Item -Path "$ArchIndependentSignedFilesRoot/scripts/addPoshVcpkgToPowershellProfile.ps1" -Destination 'out/scripts/addPoshVcpkgToPowershellProfile.ps1'
New-Item -Path 'out/scripts/buildsystems/msbuild' -ItemType 'Directory' -Force
Copy-Item -Path "$SignedFilesRoot/scripts/applocal.ps1" -Destination 'out/scripts/buildsystems/msbuild/applocal.ps1'
Copy-Item -Path "$ArchIndependentSignedFilesRoot/scripts/applocal.ps1" -Destination 'out/scripts/buildsystems/msbuild/applocal.ps1'

# None of the standalone bundles support classic mode, so turn that off in the bundled copy of the props
$propsContent = Get-Content "$PSScriptRoot/vcpkg.props" -Raw -Encoding Ascii
Expand All @@ -101,9 +101,9 @@ try {

Copy-Item -Path "$PSScriptRoot/vcpkg.targets" -Destination 'out/scripts/buildsystems/msbuild/vcpkg.targets'
New-Item -Path 'out/scripts/posh-vcpkg/0.0.1' -ItemType 'Directory' -Force
Copy-Item -Path "$SignedFilesRoot/scripts/posh-vcpkg.psm1" -Destination 'out/scripts/posh-vcpkg/0.0.1/posh-vcpkg.psm1'
Copy-Item -Path "$ArchIndependentSignedFilesRoot/scripts/posh-vcpkg.psm1" -Destination 'out/scripts/posh-vcpkg/0.0.1/posh-vcpkg.psm1'

Copy-Item -Path "$SignedFilesRoot/vcpkg-artifacts" -Destination 'out/vcpkg-artifacts' -Recurse
Copy-Item -Path "$ArchIndependentSignedFilesRoot/vcpkg-artifacts" -Destination 'out/vcpkg-artifacts' -Recurse

New-Item -Path "out/.vcpkg-root" -ItemType "File"
Set-Content -Path "out/vcpkg-bundle.json" `
Expand Down

0 comments on commit 3b5b3d5

Please sign in to comment.