@@ -16,107 +16,6 @@ variables:
1616 value : ' $(build.artifactStagingDirectory)\AppxPackages\\'
1717
1818jobs :
19- # ## Sideload release ###
20- - job : SideloadRelease
21- timeoutInMinutes : 120
22- steps :
23- - task : PowerShell@2
24- inputs :
25- targetType : ' inline'
26- script : |
27- [xml]$xmlDoc = Get-Content $(Build.SourcesDirectory)\src\Files.Package\Package.appxmanifest
28- $xmlDoc.Package.Identity.Name="Files"
29- $xmlDoc.Package.Identity.Publisher="Files"
30- $xmlDoc.Package.Properties.DisplayName="Files"
31- $xmlDoc.Package.Applications.Application.VisualElements.DisplayName="Files"
32- $xmlDoc.Save('$(Build.SourcesDirectory)\src\Files.Package\Package.appxmanifest')
33- failOnStderr : true
34-
35- - task : PowerShell@2
36- displayName : ' Use Release Logo'
37- inputs :
38- targetType : ' inline'
39- script : |
40- gci $(Build.SourcesDirectory)\src -Include *.csproj, *.appxmanifest, *.wapproj -recurse | ForEach -Process {
41- (Get-Content $_ -Raw | ForEach -Process {$_ -replace "Assets\\AppTilesDev", "Assets\AppTiles"}) | Set-Content $_ -NoNewline
42- }
43- failOnStderr : true
44-
45- - task : DownloadSecureFile@1
46- name : mapsDevKey
47- displayName : ' Download Bing Maps Dev Key'
48- inputs :
49- secureFile : ' BingMapsKey.txt'
50-
51- - task : CopyFiles@2
52- inputs :
53- SourceFolder : ' $(Agent.TempDirectory)'
54- Contents : ' $(mapsDevKey.secureFilePath)'
55- TargetFolder : ' $(Build.SourcesDirectory)\src\Files\Resources'
56- overWrite : true
57-
58- - task : DownloadSecureFile@1
59- name : appCenterDevKey
60- displayName : ' Download AppCenter Dev Key'
61- inputs :
62- secureFile : ' AppCenterKey.txt'
63-
64- - task : CopyFiles@2
65- inputs :
66- SourceFolder : ' $(Agent.TempDirectory)'
67- Contents : ' $(appCenterDevKey.secureFilePath)'
68- TargetFolder : ' $(Build.SourcesDirectory)\src\Files\Resources'
69- overWrite : true
70-
71- - task : UseDotNet@2
72- inputs :
73- packageType : sdk
74- version : 6.0.100
75-
76- - task : NuGetToolInstaller@1
77-
78- - task : NuGetCommand@2
79- inputs :
80- feedsToUse : config
81- nugetConfigPath : nuget.config
82- restoreSolution : ' $(solution)'
83-
84- - task : DownloadSecureFile@1
85- name : caCertificate
86- displayName : ' Download CA certificate'
87- inputs :
88- secureFile : ' $(signingCert.secureFilePath)'
89-
90- - task : MSBuild@1
91- inputs :
92- solution : ' **/*.wapproj'
93- platform : ' x86'
94- configuration : ' $(buildConfiguration)'
95- msbuildArguments : ' /t:build;_GenerateAppxPackage /p:AppxLogTelemetryFromSideloadingScript=False /p:GenerateAppInstallerFile=True /p:AppInstallerUri=https://cdn.files.community/files/stable/ /p:AppInstallerCheckForUpdateFrequency=OnApplicationRun /p:AppInstallerUpdateFrequency=1 /p:AppxBundlePlatforms="$(buildPlatform)" /p:AppxPackageDir="$(appxPackageDir)" /p:AppxBundle=Always /p:UapAppxPackageBuildMode=Sideload /p:AppxPackageSigningEnabled=true /p:PackageCertificateKeyFile="$(caCertificate.secureFilePath)" /p:PackageCertificatePassword="$(signingCert.password)" /p:PackageCertificateThumbprint=""'
96- maximumCpuCount : true
97-
98- - task : CopyFiles@2
99- displayName : ' Copy Files to: $(build.artifactstagingdirectory)'
100- inputs :
101- SourceFolder : ' $(system.defaultworkingdirectory)'
102- Contents : ' **\bin\$(BuildConfiguration)\**'
103- TargetFolder : ' $(build.artifactstagingdirectory)'
104-
105- - task : PublishBuildArtifacts@1
106- displayName : ' Publish Artifact: Sideload'
107- inputs :
108- PathtoPublish : ' $(build.artifactstagingdirectory)'
109- ArtifactName : ' Sideload'
110- publishLocation : ' Container'
111-
112- - task : AzureFileCopy@4
113- inputs :
114- SourcePath : ' $(build.artifactstagingdirectory)\AppxPackages\*'
115- azureSubscription : ' azureconnection'
116- Destination : ' AzureBlob'
117- storage : ' filescommunity'
118- ContainerName : ' files'
119- BlobPrefix : ' stable'
12019
12120# ## Store release ###
12221- job : StoreRelease
0 commit comments