diff options
author | Chris MacNaughton <chris.macnaughton@canonical.com> | 2017-04-20 21:01:34 +0200 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2017-05-04 08:30:22 -0400 |
commit | 20f7d9b3a209eee73dc1f1d3437f7c7e05326027 (patch) | |
tree | 05322185f69c3c2a35b107910f29bd3f246df39e | |
parent | 362abed44a000da3b31e5dd027e16eb4e36e1bed (diff) |
Add snapcraft.yaml
[Snapcraft](https://snapcraft.io/) makes Linux packaging very simple in a cross-distro
way. This adds the snapcraft.yaml file to setup a snap of ripgrep
-rw-r--r-- | .gitignore | 8 | ||||
-rw-r--r-- | snapcraft.yaml | 15 |
2 files changed, 23 insertions, 0 deletions
@@ -6,3 +6,11 @@ target /ignore/Cargo.lock /termcolor/Cargo.lock /wincolor/Cargo.lock + +# Snapcraft files +stage +prime +parts +*.snap +*.pyc +ripgrep*_source.tar.bz2
\ No newline at end of file diff --git a/snapcraft.yaml b/snapcraft.yaml new file mode 100644 index 00000000..2d63a050 --- /dev/null +++ b/snapcraft.yaml @@ -0,0 +1,15 @@ +name: ripgrep # you probably want to 'snapcraft register <name>' +version: '0.5.1' # just for humans, typically '1.2+git' or '1.3.2' +summary: Fast file searcher # 79 char long summary +description: | + ripgrep combines the usability of The Silver Searcher with the raw speed of grep. +grade: stable # must be 'stable' to release into candidate/stable channels +confinement: classic # use 'strict' once you have the right plugs and slots +parts: + ripgrep: + plugin: rust + source: . +apps: + rg: + command: env PATH=$SNAP/bin:$PATH rg + aliases: [rg]
\ No newline at end of file |