Skip to content

Commit 1b5f22a

Browse files
committed
ci: Include version in appimage recipe
1 parent d333aea commit 1b5f22a

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.vsts-ci.Skia.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,23 @@ jobs:
357357
options: "--name ci-container -v /usr/bin/docker:/tmp/docker:ro"
358358

359359
steps:
360+
- task: UseDotNet@2
361+
displayName: 'Use .Net Core runtime 3.1.x'
362+
inputs:
363+
packageType: sdk
364+
version: '3.1.x'
365+
366+
- task: gitversion/setup@0
367+
inputs:
368+
versionSpec: '5.x'
369+
370+
- task: gitversion/execute@0
371+
inputs:
372+
updateAssemblyInfo: 'False'
373+
useConfigFile: true
374+
configFilePath: gitversion.yml
375+
displayName: Use GitVersion
376+
360377
- task: DownloadBuildArtifacts@0
361378
inputs:
362379
artifactName: Calculator
@@ -378,6 +395,9 @@ jobs:
378395
appimage-builder --recipe AppImageBuilder.x64.yaml --skip-test
379396
cp *.AppImage $(build.artifactstagingdirectory)
380397
398+
env:
399+
GITVERSION_FullSemVer: $(GitVersion.FullSemVer)
400+
381401
- task: PublishBuildArtifacts@1
382402
displayName: Publish Package Artifacts
383403
inputs:

build/appimage/AppImageBuilder.x64.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ AppDir:
55
id: uno.platform.calculator
66
name: uno-calculator
77
icon: 'StoreLogo'
8-
version: latest
8+
version: !ENV ${GITVERSION_FullSemVer}
99
exec: usr/bin/uno-calculator/Calculator.Skia.Gtk
1010
exec_args: $@
1111
runtime:
@@ -73,7 +73,9 @@ AppDir:
7373
image: appimagecrafters/tests-env:ubuntu-xenial
7474
command: ./AppRun
7575
use_host_x: true
76+
7677
AppImage:
7778
arch: x86_64
79+
file_name: !ENV uno-calculator-${GITVERSION_FullSemVer}-x86_64.AppImage
7880
update-information: None
7981
sign-key: None

0 commit comments

Comments
 (0)