forked from WhitewaterFoundry/Fedora-Remix-for-WSL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
109 lines (100 loc) · 3.49 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# Universal Windows Platform
# Build a Universal Windows Platform project using Visual Studio.
# Add steps that test and distribute an app, save build artifacts, and more:
# https://aka.ms/yaml
trigger:
- master
pool:
vmImage: 'windows-latest'
variables:
solution: '**/*.sln'
buildPlatform: 'x64|ARM64'
buildConfiguration: 'Release'
appxPackageDir: '$(System.DefaultWorkingDirectory)\AppxPackages'
steps:
- task: DownloadBuildArtifacts@0
inputs:
buildType: 'specific'
project: '9cf82fa7-aab4-4f01-96a7-60ea713196c6'
pipeline: '4'
specificBuildWithTriggering: true
buildVersionToDownload: 'latest'
downloadType: 'single'
artifactName: 'drop'
downloadPath: '$(System.ArtifactsDirectory)'
- task: CmdLine@2
inputs:
script: |
mkdir x64
move $(System.ArtifactsDirectory)\drop\install_x64_rootfs.tar.gz x64\install.tar.gz
mkdir ARM64
move $(System.ArtifactsDirectory)\drop\install_ARM64_rootfs.tar.gz ARM64\install.tar.gz
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'
- task: DownloadSecureFile@1
name: signingCert
inputs:
secureFile: 'store.pfx'
- task: VSBuild@1
inputs:
solution: '$(solution)'
msbuildArgs: '/t:Launcher;Fedora-Remix-for-WSL /m /p:AppxBundlePlatforms="$(buildPlatform)" /p:AppxPackageDir="$(appxPackageDir)" /p:AppxBundle=Always /p:UapAppxPackageBuildMode=StoreUpload /p:PackageCertificateThumbprint="" /p:PackageCertificateKeyFile="$(signingCert.secureFilePath)" /p:PackageCertificatePassword="1"'
platform: 'x64'
configuration: '$(buildConfiguration)'
maximumCpuCount: true
msbuildArchitecture: 'x64'
- task: DownloadSecureFile@1
name: signingCert2
inputs:
secureFile: 'appsign.pfx'
#- task: VSBuild@1
# inputs:
# solution: '$(solution)'
# msbuildArgs: '/t:Launcher;Fedora-Remix-for-WSL-SL /m /p:AppxBundlePlatforms="$(buildPlatform)" /p:AppxPackageDir="$(appxPackageDir)" /p:AppxBundle=Always /p:UapAppxPackageBuildMode=SideloadOnly /p:PackageCertificateThumbprint="" /p:PackageCertificateKeyFile="$(signingCert2.secureFilePath)" /p:PackageCertificatePassword="$(appsign)"'
# platform: 'x64'
# configuration: '$(buildConfiguration)'
# maximumCpuCount: true
# msbuildArchitecture: 'x64'
- task: CopyFiles@2
inputs:
SourceFolder: '$(appxPackageDir)'
Contents: '**\*bundle.msixupload'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
- task: CopyFiles@2
inputs:
SourceFolder: '$(appxPackageDir)'
Contents: '**\*.msixbundle'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'
- task: store-flight@0
continueOnError: true
timeoutInMinutes: 10
inputs:
serviceEndpoint: 'Whitewater Foundry'
appId: '9N6GDM4K2HNC'
flightName: 'Azure Pipelines'
packagePath: '$(Build.ArtifactStagingDirectory)\**\*bundle.msixupload'
force: true
skipPolling: false
deletePackages: true
numberOfPackagesToKeep: '2'
- task: store-publish@0
continueOnError: true
timeoutInMinutes: 10
inputs:
serviceEndpoint: 'Whitewater Foundry'
appId: '9N6GDM4K2HNC'
metadataUpdateMethod: 'TextMetadata'
metadataPath: '$(System.DefaultWorkingDirectory)\appMetadata'
updateImages: false
packagePath: '$(Build.ArtifactStagingDirectory)\**\*bundle.msixupload'
force: true
skipPolling: false
deletePackages: true
numberOfPackagesToKeep: '2'