From 33a1bc159909b6f14124cac693e20b8b2e8feb51 Mon Sep 17 00:00:00 2001 From: ClementTsang Date: Sat, 22 Feb 2020 18:38:18 -0500 Subject: [PATCH] Add debian build. --- .travis.yml | 6 +++++- Cargo.toml | 16 ++++++++++++++-- README.md | 15 ++++++++++++--- 3 files changed, 31 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index c73271cf..30dcd031 100644 --- a/.travis.yml +++ b/.travis.yml @@ -67,7 +67,10 @@ before_deploy: cargo build --release --target i686-unknown-linux-gnu; strip ./target/i686-unknown-linux-gnu/release/btm; tar -czvf bottom_i686-unknown-linux-gnu.tar.gz ./target/i686-unknown-linux-gnu/release/btm; - tar -czvf bottom_source_code.tar.gz ./src ./Cargo.toml LICENSE tests; + tar -czvf bottom_source_code.tar.gz ./src ./Cargo.toml LICENSE tests README.md; + cargo install cargo-deb; + cargo deb; + cp ./target/debian/bottom_*.deb .; elif [[ $TRAVIS_OS_NAME == "osx" ]]; then tar -czvf bottom_x86_64-apple-darwin.tar.gz btm; fi @@ -82,6 +85,7 @@ deploy: file: - bottom_*.tar.gz - bottom_*.zip + - bottom_*.deb skip_cleanup: true on: tags: true diff --git a/Cargo.toml b/Cargo.toml index 51dd3c62..54c1c6fa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,10 +4,10 @@ version = "0.2.1" authors = ["Clement Tsang "] edition = "2018" repository = "https://github.com/ClementTsang/bottom" -keywords = ["linux", "macos", "windows", "cli", "monitoring-tool", "top", "bottom", "tui"] +keywords = ["cross-platform", "monitoring", "cli", "top", "bottom", "tui"] license = "MIT" categories = ["command-line-utilities", "visualization"] -description = "A graphical top clone, written in Rust. Inspired by both gtop and gotop. Supports Linux, macOS, and Windows." +description = "A cross-platform graphical process/system monitor with a customizable interface and a multitude of features. Supports Linux, macOS, and Windows." readme = "README.md" [[bin]] @@ -43,3 +43,15 @@ serde = "1.0" [dev-dependencies] assert_cmd = "0.12" predicates = "1" + +[package.metadata.deb] +section = "utils" +assets = [ + ["target/release/btm", "usr/bin/", "755"], + ["LICENSE", "usr/share/doc/btm/", "644"], + ["README.md", "usr/share/doc/btm/README", "644"], +] +extended-description = """\ +By default, bottom will look for a config file in ~/.config/bottom/bottom.toml. +If one is not specified it will fall back to defaults. +""" \ No newline at end of file diff --git a/README.md b/README.md index 79c1546e..47818914 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,15 @@ You can get the release versions from the [AUR](https://aur.archlinux.org/packag yay bottom ``` +#### Debian + +I'll provide a `.deb` file on each [release](https://github.com/ClementTsang/bottom/releases). One can install using this, for example: + +```bash +curl -LO https://github.com/ClementTsang/bottom/releases/download/0.2.1/bottom_0.2.1_amd64.deb +sudo dpkg -i bottom_0.2.1_amd64.deb +``` + ### Windows You can get release versions via [Chocolatey](https://chocolatey.org/packages/bottom/): @@ -65,10 +74,10 @@ choco install bottom You can get release versions using Homebrew: ```bash -brew tap clementtsang/bottom -brew install bottom +$ brew tap clementtsang/bottom +$ brew install bottom # Or -brew install clementtsang/bottom/bottom +$ brew install clementtsang/bottom/bottom ``` ## Usage