Bump flatbuffers to v24.3.25 version (#6968)
This commit is contained in:
committed by
GitHub
parent
7436835244
commit
825132eec7
+16
-4
@@ -1,7 +1,6 @@
|
||||
name: flatbuffers
|
||||
base: core18
|
||||
version: latest
|
||||
version-script: git describe --always | sed -e 's/-/+git/;y/-/./' | tail -c +2
|
||||
adopt-info: flatc
|
||||
summary: FlatBuffers compiler
|
||||
description: |
|
||||
FlatBuffers compiler
|
||||
@@ -27,11 +26,24 @@ parts:
|
||||
- -DCMAKE_BUILD_TYPE=Release
|
||||
build-packages:
|
||||
- g++
|
||||
# used to set version number
|
||||
- git
|
||||
override-pull: |
|
||||
snapcraftctl pull
|
||||
tag=$(git describe --tags --abbrev=0)
|
||||
count=$(git rev-list $tag.. --count)
|
||||
if [ "$count" = 0 ];
|
||||
then
|
||||
version=$tag
|
||||
else
|
||||
hash=$(git rev-parse --short HEAD)
|
||||
version=$tag+git$count.$hash
|
||||
fi
|
||||
snapcraftctl set-version $version
|
||||
|
||||
|
||||
apps:
|
||||
flatc:
|
||||
command: flatc
|
||||
command: bin/flatc
|
||||
plugs:
|
||||
- home
|
||||
- removable-media
|
||||
|
||||
Reference in New Issue
Block a user