1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-12 07:09:00 +00:00

dynamic resolve version in snapcraft

This commit is contained in:
deadc0de6
2020-10-24 23:40:18 +02:00
parent 7e1d2ba351
commit e4b6181a63

View File

@@ -1,6 +1,5 @@
name: dotdrop name: dotdrop
version: latest adopt-info: version
version-script: cat $SNAPCRAFT_STAGE/bin/dotdrop | grep '__requires__' | sed "s/.*'dotdrop==\(.*\)'/\1/"
summary: Save your dotfiles once, deploy them everywhere summary: Save your dotfiles once, deploy them everywhere
description: | description: |
Dotdrop makes the management of dotfiles between different hosts easy. Dotdrop makes the management of dotfiles between different hosts easy.
@@ -35,3 +34,9 @@ parts:
source: ../../ source: ../../
stage-packages: stage-packages:
- file - file
version:
source: .
plugin: nil
override-build: |
VERSION=$(git tag -l | tail -1 | sed 's/^v//g')
snapcraftctl set-version "${VERSION}"