X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=snapcraft.yaml;h=e5ac0d18e1b7f38505a3ce10ba012cc953dc094c;hb=ce2d1865437739355307eb98c7fc8fc776052b71;hp=dc5a72624246f5ecb864b3bb399c28e072197f91;hpb=24a684cff25cd9f189a943d1dc2a98d3aa6c796f;p=micro.git diff --git a/snapcraft.yaml b/snapcraft.yaml index dc5a7262..e5ac0d18 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -1,11 +1,11 @@ name: micro -version: git summary: A modern and intuitive terminal-based text editor description: | Micro is a terminal-based text editor that aims to be easy to use and intuitive, while also taking advantage of the full capabilities of modern terminals. confinement: classic +adopt-info: micro apps: micro: @@ -19,7 +19,13 @@ parts: build-packages: [make] build-snaps: [go] build-attributes: [no-patchelf] + override-pull: | + snapcraftctl pull + version="$(go run $SNAPCRAFT_PART_SRC/tools/build-version.go)" + [ -n "$(echo $version | grep "dev")" ] && grade=devel || grade=stable + snapcraftctl set-version "$version" + snapcraftctl set-grade "$grade" override-build: | - make build + make build-tags mkdir $SNAPCRAFT_PART_INSTALL/bin mv ./micro $SNAPCRAFT_PART_INSTALL/bin/