|
63 | 63 | $xmlDoc.Package.Applications.Application.VisualElements.DisplayName="${{parameters.packageDisplayName}}"
|
64 | 64 | $xmlDoc.Save('$(Build.SourcesDirectory)\src\Files.App (Package)\Package.appxmanifest')
|
65 | 65 | failOnStderr: true
|
66 |
| - |
| 66 | + |
67 | 67 | # This replaces references to the dev icon with the specified icon variant
|
68 | 68 | - task: PowerShell@2
|
69 | 69 | displayName: 'Use Correct Logo'
|
@@ -156,12 +156,6 @@ jobs:
|
156 | 156 | ContainerName: 'files'
|
157 | 157 | BlobPrefix: '${{parameters.releaseBranch}}'
|
158 | 158 |
|
159 |
| - - task: tfx-cloudflare-purge@1 |
160 |
| - inputs: |
161 |
| - username: '$(cloudflare.username)' |
162 |
| - apikey: '$(cloudflare.apikey)' |
163 |
| - zonename: '$(cloudflare.zoneid)' |
164 |
| - |
165 | 159 | ### Store release ###
|
166 | 160 | - job: StoreRelease
|
167 | 161 | timeoutInMinutes: 120
|
@@ -210,19 +204,16 @@ jobs:
|
210 | 204 | TargetFolder: '$(Build.SourcesDirectory)\src\Files.App\Resources'
|
211 | 205 | overWrite: true
|
212 | 206 |
|
213 |
| -# Adds the AppCenter token to the project |
214 |
| - - task: DownloadSecureFile@1 |
215 |
| - name: appCenterDevKey |
216 |
| - displayName: 'Download AppCenter Dev Key' |
217 |
| - inputs: |
218 |
| - secureFile: 'AppCenterKey.txt' |
219 |
| - |
220 |
| - - task: CopyFiles@2 |
| 207 | +# Injects the AppCenter token to the project |
| 208 | + - task: PowerShell@2 |
| 209 | + displayName: 'Inject AppCenter token' |
221 | 210 | inputs:
|
222 |
| - SourceFolder: '$(Agent.TempDirectory)' |
223 |
| - Contents: '$(appCenterDevKey.secureFilePath)' |
224 |
| - TargetFolder: '$(Build.SourcesDirectory)\src\Files.App\Resources' |
225 |
| - overWrite: true |
| 211 | + targetType: 'inline' |
| 212 | + script: | |
| 213 | + gci $(Build.SourcesDirectory)\src -Include *.cs -recurse | ForEach -Process { |
| 214 | + (Get-Content $_ -Raw | ForEach -Process {$_ -replace "appcenter.secret", "$(appcenter.secret)"}) | Set-Content $_ -NoNewline |
| 215 | + } |
| 216 | + failOnStderr: true |
226 | 217 |
|
227 | 218 | - task: UseDotNet@2
|
228 | 219 | inputs:
|
|
0 commit comments