Trying to rename the published files to something with the architecture in it.

This commit is contained in:
Robin Krom 2019-04-29 23:12:09 +02:00
commit 9b527334a6

View file

@ -38,6 +38,10 @@ steps:
arguments: '-f netcoreapp3.0 -c Release /p:PublishSingleFile=true /p:UseAppHost=true /p:RuntimeIdentifier=win-x64' arguments: '-f netcoreapp3.0 -c Release /p:PublishSingleFile=true /p:UseAppHost=true /p:RuntimeIdentifier=win-x64'
zipAfterPublish: false zipAfterPublish: false
- task: CmdLine@2
inputs:
script: 'move win-x64\publish\Greenshot.exe win-x64\publish\Greenshot-x64.exe'
- task: DotNetCoreCLI@2 - task: DotNetCoreCLI@2
displayName: Publish single-exe x86 displayName: Publish single-exe x86
inputs: inputs:
@ -47,15 +51,19 @@ steps:
arguments: '-f netcoreapp3.0 -c Release /p:PublishSingleFile=true /p:UseAppHost=true /p:RuntimeIdentifier=win-x86' arguments: '-f netcoreapp3.0 -c Release /p:PublishSingleFile=true /p:UseAppHost=true /p:RuntimeIdentifier=win-x86'
zipAfterPublish: false zipAfterPublish: false
- task: CmdLine@2
inputs:
script: 'move win-x86\publish\Greenshot.exe win-x86\publish\Greenshot-x86.exe'
- task: CopyFiles@2 - task: CopyFiles@2
displayName: 'Copy Files to: $(build.artifactstagingdirectory)' displayName: 'Copy Files to: $(build.artifactstagingdirectory)'
inputs: inputs:
SourceFolder: '$(Build.SourcesDirectory)\src\Greenshot\bin\Release\netcoreapp3.0' SourceFolder: '$(Build.SourcesDirectory)\src\Greenshot\bin\Release\netcoreapp3.0'
Contents: | Contents: |
win-x64\publish\Greenshot.exe win-x64\publish\Greenshot-x64.exe
win-x86\publish\Greenshot.exe win-x86\publish\Greenshot-x86.exe
TargetFolder: '$(build.artifactstagingdirectory)' TargetFolder: '$(build.artifactstagingdirectory)'
flattenFolders: false flattenFolders: true
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop' displayName: 'Publish Artifact: drop'