mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-30 14:10:03 +00:00
Fix snap version formatting (#6683)
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
name: flatbuffers
|
name: flatbuffers
|
||||||
base: core18
|
base: core18
|
||||||
version: git
|
adopt-info: flatc
|
||||||
summary: FlatBuffers compiler
|
summary: FlatBuffers compiler
|
||||||
description: |
|
description: |
|
||||||
FlatBuffers compiler
|
FlatBuffers compiler
|
||||||
@@ -26,10 +26,18 @@ parts:
|
|||||||
- -DCMAKE_BUILD_TYPE=Release
|
- -DCMAKE_BUILD_TYPE=Release
|
||||||
build-packages:
|
build-packages:
|
||||||
- g++
|
- g++
|
||||||
|
- git
|
||||||
|
override-pull: |
|
||||||
|
snapcraftctl pull
|
||||||
|
tag=$(git describe --tags --abbrev=0)
|
||||||
|
count=$(git rev-list $tag.. --count)
|
||||||
|
hash=$(git rev-parse --short HEAD)
|
||||||
|
snapcraftctl set-version $tag+git$count.$hash
|
||||||
|
|
||||||
|
|
||||||
apps:
|
apps:
|
||||||
flatc:
|
flatc:
|
||||||
command: flatc
|
command: bin/flatc
|
||||||
plugs:
|
plugs:
|
||||||
- home
|
- home
|
||||||
- removable-media
|
- removable-media
|
||||||
|
|||||||
Reference in New Issue
Block a user