mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 14:13:30 -07:00
Revert some change of build scripts
This commit is contained in:
parent
06b4b73a5a
commit
8a02f815f5
4 changed files with 8 additions and 24 deletions
|
@ -28,12 +28,14 @@ jobs:
|
|||
downloadDirectory: $(Build.SourcesDirectory)
|
||||
vstsFeed: WindowsInboxApps
|
||||
vstsFeedPackage: calculator-internals
|
||||
vstsPackageVersion: 0.0.65
|
||||
${{ if eq(parameters.isPublicRelease, true) }}:
|
||||
vstsPackageVersion: 0.0.66
|
||||
${{ if eq(parameters.isPublicRelease, false) }}:
|
||||
vstsPackageVersion: 0.0.65
|
||||
|
||||
- template: ./build-single-architecture.yaml
|
||||
parameters:
|
||||
extraMsBuildArgs: '/p:IsStoreBuild=true'
|
||||
isPublicRelease: ${{ parameters.isPublicRelease }}
|
||||
|
||||
- task: PublishSymbols@2
|
||||
displayName: Publish symbols
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
parameters:
|
||||
extraMsBuildArgs: ''
|
||||
isPublicRelease: false
|
||||
|
||||
steps:
|
||||
- task: NuGetToolInstaller@1
|
||||
|
@ -23,10 +22,7 @@ steps:
|
|||
displayName: Set version number in AppxManifest
|
||||
inputs:
|
||||
filePath: $(Build.SourcesDirectory)\build\scripts\UpdateAppxManifestVersion.ps1
|
||||
${{ if eq(parameters.isPublicRelease, true) }}:
|
||||
arguments: '-AppxManifest $(Build.SourcesDirectory)\src\Calculator\Package.appxmanifest -Version $(Build.BuildNumber) -MinVersion 10.0.22000.0'
|
||||
${{ if eq(parameters.isPublicRelease, false) }}:
|
||||
arguments: '-AppxManifest $(Build.SourcesDirectory)\src\Calculator\Package.appxmanifest -Version $(Build.BuildNumber)'
|
||||
arguments: '-AppxManifest $(Build.SourcesDirectory)\src\Calculator\Package.appxmanifest -Version $(Build.BuildNumber)'
|
||||
|
||||
- task: VSBuild@1
|
||||
displayName: 'Build solution src/Calculator.sln'
|
||||
|
@ -43,4 +39,4 @@ steps:
|
|||
inputs:
|
||||
artifactName: drop
|
||||
pathToPublish: $(Build.BinariesDirectory)
|
||||
parallel: true
|
||||
parallel: true
|
|
@ -81,7 +81,7 @@ jobs:
|
|||
downloadDirectory: $(Build.SourcesDirectory)
|
||||
vstsFeed: WindowsInboxApps
|
||||
vstsFeedPackage: calculator-internals
|
||||
vstsPackageVersion: 0.0.65
|
||||
vstsPackageVersion: 0.0.66
|
||||
|
||||
- powershell: |
|
||||
# Just modify this line to indicate where your en-us PDP file is. Leave the other lines alone.
|
||||
|
|
|
@ -11,9 +11,6 @@
|
|||
.PARAMETER Version
|
||||
The version number to write into the file.
|
||||
|
||||
.PARAMETER MinVersion
|
||||
The MinVersion to write to TargetDeviceFamily element in the file.
|
||||
|
||||
.EXAMPLE
|
||||
Update-AppxManifestVersion -AppxManifest "C:\App\Package.appxmanifest" -Version "3.2.1.0"
|
||||
#>
|
||||
|
@ -26,20 +23,9 @@ param(
|
|||
[ValidateScript({[version]$_})]
|
||||
[Parameter(Mandatory)]
|
||||
[string]
|
||||
$Version,
|
||||
|
||||
[ValidateScript({[version]$_})]
|
||||
[Parameter(Mandatory=$false)]
|
||||
[string]
|
||||
$MinVersion
|
||||
$Version
|
||||
)
|
||||
|
||||
$xmlDoc = [XML](Get-Content $AppxManifest)
|
||||
$xmlDoc.Package.Identity.setAttribute("Version", $Version);
|
||||
|
||||
if($MinVersion)
|
||||
{
|
||||
$xmlDoc.Package.Dependencies.TargetDeviceFamily.setAttribute("MinVersion", $MinVersion);
|
||||
}
|
||||
|
||||
$xmlDoc.Save($AppxManifest)
|
Loading…
Add table
Add a link
Reference in a new issue