Skip to content

Commit

Permalink
ci: Include version in appimage recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed Oct 19, 2020
1 parent d333aea commit 1b5f22a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .vsts-ci.Skia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,23 @@ jobs:
options: "--name ci-container -v /usr/bin/docker:/tmp/docker:ro"

steps:
- task: UseDotNet@2
displayName: 'Use .Net Core runtime 3.1.x'
inputs:
packageType: sdk
version: '3.1.x'

- task: gitversion/setup@0
inputs:
versionSpec: '5.x'

- task: gitversion/execute@0
inputs:
updateAssemblyInfo: 'False'
useConfigFile: true
configFilePath: gitversion.yml
displayName: Use GitVersion

- task: DownloadBuildArtifacts@0
inputs:
artifactName: Calculator
Expand All @@ -378,6 +395,9 @@ jobs:
appimage-builder --recipe AppImageBuilder.x64.yaml --skip-test
cp *.AppImage $(build.artifactstagingdirectory)
env:
GITVERSION_FullSemVer: $(GitVersion.FullSemVer)
- task: PublishBuildArtifacts@1
displayName: Publish Package Artifacts
inputs:
Expand Down
4 changes: 3 additions & 1 deletion build/appimage/AppImageBuilder.x64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ AppDir:
id: uno.platform.calculator
name: uno-calculator
icon: 'StoreLogo'
version: latest
version: !ENV ${GITVERSION_FullSemVer}
exec: usr/bin/uno-calculator/Calculator.Skia.Gtk
exec_args: $@
runtime:
Expand Down Expand Up @@ -73,7 +73,9 @@ AppDir:
image: appimagecrafters/tests-env:ubuntu-xenial
command: ./AppRun
use_host_x: true

AppImage:
arch: x86_64
file_name: !ENV uno-calculator-${GITVERSION_FullSemVer}-x86_64.AppImage
update-information: None
sign-key: None

0 comments on commit 1b5f22a

Please sign in to comment.