X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=snapcraft.yaml;h=e5ac0d18e1b7f38505a3ce10ba012cc953dc094c;hb=56c825c44c967aa260ecbc3d1305ef4117fbaa42;hp=a76da740c46b66d27774c013bffbaf93b5af773a;hpb=a549d12808833c73876af9f2fa85fc908205708a;p=micro.git diff --git a/snapcraft.yaml b/snapcraft.yaml index a76da740..e5ac0d18 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -1,19 +1,31 @@ name: micro -version: master 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: strict +confinement: classic +adopt-info: micro apps: micro: command: bin/micro - plugs: [home] parts: micro: source: . - plugin: go - go-importpath: github.com/zyedidia/micro + source-type: git + plugin: nil + 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-tags + mkdir $SNAPCRAFT_PART_INSTALL/bin + mv ./micro $SNAPCRAFT_PART_INSTALL/bin/