52
52
inputs :
53
53
SourceFolder : ' $(Agent.TempDirectory)'
54
54
Contents : ' $(mapsDevKey.secureFilePath)'
55
- TargetFolder : ' $(Build.SourcesDirectory)\Files\Resources'
55
+ TargetFolder : ' $(Build.SourcesDirectory)\src\ Files.Uwp \Resources'
56
56
overWrite : true
57
57
58
58
- task : DownloadSecureFile@1
65
65
inputs :
66
66
SourceFolder : ' $(Agent.TempDirectory)'
67
67
Contents : ' $(appCenterDevKey.secureFilePath)'
68
- TargetFolder : ' $(Build.SourcesDirectory)\Files\Resources'
68
+ TargetFolder : ' $(Build.SourcesDirectory)\src\ Files.Uwp \Resources'
69
69
overWrite : true
70
70
71
71
- task : UseDotNet@2
92
92
solution : ' **/*.wapproj'
93
93
platform : ' x86'
94
94
configuration : ' $(buildConfiguration)'
95
- msbuildArguments : ' /t:build;_GenerateAppxPackage /p:AppxLogTelemetryFromSideloadingScript=False /p:GenerateAppInstallerFile=True /p:AppInstallerUri=https://filescommunity.blob.core.windows.net /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=""'
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
96
maximumCpuCount : true
97
97
98
98
- task : CopyFiles@2
@@ -117,3 +117,103 @@ jobs:
117
117
storage : ' filescommunity'
118
118
ContainerName : ' files'
119
119
BlobPrefix : ' stable'
120
+
121
+ # ## Store release ###
122
+ - job : StoreRelease
123
+ timeoutInMinutes : 120
124
+
125
+ steps :
126
+ - task : PowerShell@2
127
+ inputs :
128
+ targetType : ' inline'
129
+ script : |
130
+ [xml]$xmlDoc = Get-Content $(Build.SourcesDirectory)\src\Files.Package\Package.appxmanifest
131
+ $xmlDoc.Package.Identity.Name="49306atecsolution.FilesUWP"
132
+ $xmlDoc.Package.Identity.Publisher="CN=53EC4384-7F5B-4CF6-8C23-513FFE9D1AB7"
133
+ $xmlDoc.Package.Properties.DisplayName="Files"
134
+ $xmlDoc.Package.Applications.Application.VisualElements.DisplayName="Files"
135
+ $xmlDoc.Save('$(Build.SourcesDirectory)\src\Files.Package\Package.appxmanifest')
136
+ failOnStderr : true
137
+
138
+ - task : PowerShell@2
139
+ displayName : ' Use Release Logo'
140
+ inputs :
141
+ targetType : ' inline'
142
+ script : |
143
+ gci $(Build.SourcesDirectory)\src -Include *.csproj, *.appxmanifest, *.wapproj -recurse | ForEach -Process {
144
+ (Get-Content $_ -Raw | ForEach -Process {$_ -replace "Assets\\AppTilesDev", "Assets\AppTiles"}) | Set-Content $_ -NoNewline
145
+ }
146
+ failOnStderr : true
147
+
148
+ - task : DownloadSecureFile@1
149
+ name : mapsDevKey
150
+ displayName : ' Download Bing Maps Dev Key'
151
+ inputs :
152
+ secureFile : ' BingMapsKey.txt'
153
+
154
+ - task : CopyFiles@2
155
+ inputs :
156
+ SourceFolder : ' $(Agent.TempDirectory)'
157
+ Contents : ' $(mapsDevKey.secureFilePath)'
158
+ TargetFolder : ' $(Build.SourcesDirectory)\src\Files.Uwp\Resources'
159
+ overWrite : true
160
+
161
+ - task : DownloadSecureFile@1
162
+ name : appCenterDevKey
163
+ displayName : ' Download AppCenter Dev Key'
164
+ inputs :
165
+ secureFile : ' AppCenterKey.txt'
166
+
167
+ - task : CopyFiles@2
168
+ inputs :
169
+ SourceFolder : ' $(Agent.TempDirectory)'
170
+ Contents : ' $(appCenterDevKey.secureFilePath)'
171
+ TargetFolder : ' $(Build.SourcesDirectory)\src\Files.Uwp\Resources'
172
+ overWrite : true
173
+
174
+ - task : UseDotNet@2
175
+ inputs :
176
+ packageType : sdk
177
+ version : 6.0.100
178
+
179
+ - task : NuGetToolInstaller@1
180
+
181
+ - task : NuGetCommand@2
182
+ inputs :
183
+ feedsToUse : config
184
+ nugetConfigPath : nuget.config
185
+ restoreSolution : ' $(solution)'
186
+
187
+ - task : MSBuild@1
188
+ inputs :
189
+ solution : ' **/*.wapproj'
190
+ platform : ' x86'
191
+ configuration : ' $(buildConfiguration)'
192
+ msbuildArguments : ' /t:build;_GenerateAppxPackage /p:AppxBundlePlatforms="$(buildPlatform)" /p:AppxPackageDir="$(appxPackageDir)" /p:AppxBundle=Always /p:UapAppxPackageBuildMode=StoreUpload'
193
+ maximumCpuCount : true
194
+
195
+ - task : CopyFiles@2
196
+ displayName : ' Copy Files to: $(build.artifactstagingdirectory)'
197
+ inputs :
198
+ SourceFolder : ' $(system.defaultworkingdirectory)'
199
+ Contents : ' **\bin\$(BuildConfiguration)\**'
200
+ TargetFolder : ' $(build.artifactstagingdirectory)'
201
+
202
+ - task : PublishBuildArtifacts@1
203
+ displayName : ' Publish Artifact: Store'
204
+ inputs :
205
+ PathtoPublish : ' $(build.artifactstagingdirectory)'
206
+ ArtifactName : ' Store'
207
+ publishLocation : ' Container'
208
+
209
+ - task : store-flight@0
210
+ inputs :
211
+ serviceEndpoint : ' Files'
212
+ appId : ' 9NGHP3DX8HDX'
213
+ flightName : ' Files - Preview'
214
+ packagePath : ' $(appxPackageDir)\**\*.msixupload'
215
+ force : false
216
+ skipPolling : false
217
+ deletePackages : true
218
+ numberOfPackagesToKeep : ' 5'
219
+ isMandatoryUpdate : true
0 commit comments