diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index e907b97..047125c 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,17 +1,16 @@ name: fkill -version: latest -version-script: git -C parts/fkill/build describe --tags | sed 's/v//' +adopt-info: fkill summary: Fabulously kill processes. Cross-platform. description: | A command-line tool for easily and quickly killing processes. -base: core18 +base: core20 grade: stable confinement: strict apps: fkill: - command: fkill + command: bin/fkill plugs: - network - process-control @@ -19,9 +18,9 @@ apps: parts: fkill: - plugin: nodejs + plugin: npm + npm-node-version: 16.15.1 source: https://github.com/sindresorhus/fkill-cli.git - nodejs-version: 12.16.0 override-build: | last_committed_tag="$(git describe --tags --abbrev=0)" last_committed_tag_ver="$(echo ${last_committed_tag} | sed 's/v//')" @@ -33,6 +32,7 @@ parts: git checkout "${last_committed_tag}" fi snapcraftctl build + snapcraftctl set-version $last_committed_tag stage-packages: - iproute2 - libatm1