forked from PixiEditor/PixiEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
windows-x86-release-dev.yml
96 lines (79 loc) · 2.52 KB
/
windows-x86-release-dev.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
# .NET Desktop
# Build and run tests for .NET Desktop or Windows classic desktop solutions.
# Add steps that publish symbols, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net
trigger:
- development
pr: none
pool:
vmImage: 'windows-latest'
variables:
solution: '**/*.sln'
buildPlatform: 'x86'
buildConfiguration: 'Release'
steps:
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: '6.0.100'
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'
- task: VSBuild@1
inputs:
solution: '$(solution)'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: "Build release PixiEditor.UpdateInstaller"
inputs:
command: 'publish'
publishWebProjects: false
projects: '**/PixiEditor.UpdateInstaller.csproj'
arguments: '-o "UpdateInstaller" -r "win-x86" --self-contained=false -p:PublishSingleFile=true -c Release'
zipAfterPublish: false
- task: PowerShell@2
displayName: "Set tag version"
inputs:
filePath: 'assemblyVerReader.ps1'
- task: DotNetCoreCLI@2
displayName: "Build release PixiEditor x86 light"
inputs:
command: 'publish'
publishWebProjects: false
projects: '**/PixiEditor.csproj'
arguments: >
-o "Builds\PixiEditor-x86-light" --self-contained=false -r "win-x86" -c "Dev Release"
zipAfterPublish: false
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: 'Builds\PixiEditor-x86-light'
includeRootFolder: false
archiveType: 'zip'
archiveFile: 'PixiEditor.$(TagVersion).x86.zip'
replaceExistingArchive: true
- task: PublishPipelineArtifact@1
displayName: "Publish zip artifact"
inputs:
targetPath: '$(System.DefaultWorkingDirectory)\PixiEditor.$(TagVersion).x86.zip'
artifact: 'PixiEditor.$(TagVersion).x86.zip'
publishLocation: 'pipeline'
- task: CopyFiles@2
displayName: "Copy updater to PixiEditor target dir"
inputs:
SourceFolder: 'UpdateInstaller'
Contents: '**'
TargetFolder: 'Builds/PixiEditor-x86-light/PixiEditor'
flattenFolders: true
- task: PowerShell@2
displayName: "Compile installer"
inputs:
targetType: 'inline'
script: '& "$env:userprofile\.nuget\packages\tools.innosetup\6.2.0\tools\ISCC.exe" Installer\installer-setup-x86-light.iss'
- task: PublishPipelineArtifact@1
displayName: "Publish artifact"
inputs:
targetPath: 'Installer/Assets/PixiEditor-x86-light/'
artifact: 'PixiEditor-setup-x86.exe'
publishLocation: 'pipeline'