|
@@ -0,0 +1,87 @@
|
|
|
+# .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:
|
|
|
+- master
|
|
|
+
|
|
|
+pool:
|
|
|
+ vmImage: 'windows-latest'
|
|
|
+
|
|
|
+variables:
|
|
|
+ solution: '**/*.sln'
|
|
|
+ buildPlatform: 'Any CPU'
|
|
|
+ buildConfiguration: 'Release'
|
|
|
+
|
|
|
+steps:
|
|
|
+- task: NuGetToolInstaller@1
|
|
|
+
|
|
|
+- task: NuGetCommand@2
|
|
|
+ inputs:
|
|
|
+ restoreSolution: '$(solution)'
|
|
|
+
|
|
|
+- task: VSBuild@1
|
|
|
+ inputs:
|
|
|
+ solution: '$(solution)'
|
|
|
+ platform: '$(buildPlatform)'
|
|
|
+ configuration: '$(buildConfiguration)'
|
|
|
+
|
|
|
+- task: DotNetCoreCLI@2
|
|
|
+ displayName: "Publish PixiEditor.UpdateInstaller"
|
|
|
+ inputs:
|
|
|
+ command: 'publish'
|
|
|
+ publishWebProjects: false
|
|
|
+ projects: '**/PixiEditor.UpdateInstaller.csproj'
|
|
|
+ arguments: '-o "UpdateInstaller" -r "win-x64" --self-contained=false -p:PublishSingleFile=true -c Release'
|
|
|
+ zipAfterPublish: false
|
|
|
+
|
|
|
+- task: DotNetCoreCLI@2
|
|
|
+ inputs:
|
|
|
+ command: 'publish'
|
|
|
+ publishWebProjects: false
|
|
|
+ projects: '**/PixiEditor.csproj'
|
|
|
+ arguments: '-o "Builds\PixiEditor-x64" --self-contained=true -r "win-x64" -c Release'
|
|
|
+ zipAfterPublish: false
|
|
|
+
|
|
|
+- task: CopyFiles@2
|
|
|
+ inputs:
|
|
|
+ SourceFolder: 'UpdateInstaller'
|
|
|
+ Contents: '**'
|
|
|
+ TargetFolder: 'Builds/PixiEditor-x64'
|
|
|
+
|
|
|
+- task: PowerShell@2
|
|
|
+ inputs:
|
|
|
+ targetType: 'inline'
|
|
|
+ script: '& "$env:userprofile\.nuget\packages\tools.innosetup\6.0.5\tools\ISCC.exe" Installer\installer-setup-x64.iss'
|
|
|
+
|
|
|
+- task: PublishPipelineArtifact@1
|
|
|
+ inputs:
|
|
|
+ targetPath: 'Assets/PixiEditor-x64/'
|
|
|
+ artifact: 'PixiEditor-setup-x64.exe'
|
|
|
+ publishLocation: 'pipeline'
|
|
|
+
|
|
|
+- task: DotNetCoreCLI@2
|
|
|
+ inputs:
|
|
|
+ command: 'publish'
|
|
|
+ publishWebProjects: false
|
|
|
+ projects: '**/PixiEditor.csproj'
|
|
|
+ arguments: '-o "Builds\PixiEditor-x64-light" --self-contained=true -r "win-x64" -c Release'
|
|
|
+ zipAfterPublish: false
|
|
|
+
|
|
|
+- task: CopyFiles@2
|
|
|
+ inputs:
|
|
|
+ SourceFolder: 'UpdateInstaller'
|
|
|
+ Contents: '**'
|
|
|
+ TargetFolder: 'Builds/PixiEditor-x64-light'
|
|
|
+
|
|
|
+- task: PowerShell@2
|
|
|
+ inputs:
|
|
|
+ targetType: 'inline'
|
|
|
+ script: '& "$env:userprofile\.nuget\packages\tools.innosetup\6.0.5\tools\ISCC.exe" Installer\installer-setup-x64-light.iss'
|
|
|
+
|
|
|
+- task: PublishPipelineArtifact@1
|
|
|
+ inputs:
|
|
|
+ targetPath: 'Assets/PixiEditor-x64-light/'
|
|
|
+ artifact: 'PixiEditor-setup-x64-light.exe'
|
|
|
+ publishLocation: 'pipeline'
|