@@ -48,38 +48,3 @@ steps:
48
48
eq(variables['_SignType'], 'real')
49
49
)
50
50
))
51
-
52
- # Workaround for ESRP CLI on Linux - https://github.com/dotnet/source-build/issues/4964
53
- - ${{ if eq(parameters.enableMicrobuildForMacAndLinux, 'true') }} :
54
- - task : UseDotNet@2
55
- displayName : Install .NET 9.0 SDK for ESRP CLI Workaround
56
- inputs :
57
- packageType : sdk
58
- version : 9.0.x
59
- installationPath : ${{ parameters.microBuildOutputFolder }}/.dotnet
60
- workingDirectory : ${{ parameters.microBuildOutputFolder }}
61
- condition : and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
62
-
63
- - task : PowerShell@2
64
- displayName : Workaround for ESRP CLI on Linux
65
- inputs :
66
- targetType : ' inline'
67
- script : |
68
- Write-Host "Copying Linux Path"
69
- $MBSIGN_APPFOLDER = '$(MBSIGN_APPFOLDER)'
70
- $MBSIGN_APPFOLDER = ($MBSIGN_APPFOLDER -replace '/build', '')
71
-
72
- $versionRegex = '\d+\.\d+\.\d+'
73
- $package = Get-ChildItem -Path $MBSIGN_APPFOLDER -Directory |
74
- Where-Object { $_.Name -match $versionRegex }
75
-
76
- if ($package.Count -ne 1) {
77
- Write-Host "There should be exactly one matching subfolder, but found $($package.Count)."
78
- exit 1
79
- }
80
-
81
- $MBSIGN_APPFOLDER = $package[0].FullName + '/build'
82
- $MBSIGN_APPFOLDER | Write-Host
83
- $SignConfigPath = $MBSIGN_APPFOLDER + '/signconfig.xml'
84
- Copy-Item -Path "$(MBSIGN_APPFOLDER)/signconfig.xml" -Destination $SignConfigPath -Force
85
- condition : and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
0 commit comments