Skip to content

Feature: Added unique icon for preview build #9958

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Sep 9, 2022
Merged
  •  
  •  
  •  
17 changes: 12 additions & 5 deletions builds/azure-pipelines-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ parameters:
values:
- 'Files (Preview)'
- 'Files'
- name: iconVariant
displayName: Icon Variant
type: string
default: 'Preview'
values:
- 'Preview'
- 'Release'

variables:
- group: BuildPipelineVariables
Expand Down Expand Up @@ -57,14 +64,14 @@ jobs:
$xmlDoc.Save('$(Build.SourcesDirectory)\src\Files.Package\Package.appxmanifest')
failOnStderr: true

# This replaces references to the dev icon with the regular release icon
# This replaces references to the dev icon with the specified icon variant
- task: PowerShell@2
displayName: 'Use Correct Logo'
inputs:
targetType: 'inline'
script: |
gci $(Build.SourcesDirectory)\src -Include *.csproj, *.appxmanifest, *.wapproj -recurse | ForEach -Process {
(Get-Content $_ -Raw | ForEach -Process {$_ -replace "Assets\\AppTilesDev", "Assets\AppTiles"}) | Set-Content $_ -NoNewline
(Get-Content $_ -Raw | ForEach -Process {$_ -replace "Assets\\AppTiles\\Dev", "Assets\AppTiles\${{parameters.iconVariant}}"}) | Set-Content $_ -NoNewline
}
failOnStderr: true

Expand Down Expand Up @@ -171,14 +178,14 @@ jobs:
$xmlDoc.Save('$(Build.SourcesDirectory)\src\Files.Package\Package.appxmanifest')
failOnStderr: true

# This replaces references to the dev icon with the regular release icon
# This replaces references to the dev icon with the specified icon variant
- task: PowerShell@2
displayName: 'Use Release Logo'
displayName: 'Use Correct Logo'
inputs:
targetType: 'inline'
script: |
gci $(Build.SourcesDirectory)\src -Include *.csproj, *.appxmanifest, *.wapproj -recurse | ForEach -Process {
(Get-Content $_ -Raw | ForEach -Process {$_ -replace "Assets\\AppTilesDev", "Assets\AppTiles"}) | Set-Content $_ -NoNewline
(Get-Content $_ -Raw | ForEach -Process {$_ -replace "Assets\\AppTiles\\Dev", "Assets\AppTiles\${{parameters.iconVariant}}"}) | Set-Content $_ -NoNewline
}
failOnStderr: true

Expand Down
Loading