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:
@@ -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}"
|
||||||
|
|||||||
Reference in New Issue
Block a user