mirror of
https://github.com/ClementTsang/bottom
synced 2025-02-16 13:18:28 +00:00
Add debian build.
This commit is contained in:
parent
41148a2fa2
commit
33a1bc1599
3 changed files with 31 additions and 6 deletions
|
@ -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
|
||||
|
|
16
Cargo.toml
16
Cargo.toml
|
@ -4,10 +4,10 @@ version = "0.2.1"
|
|||
authors = ["Clement Tsang <cjhtsang@uwaterloo.ca>"]
|
||||
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.
|
||||
"""
|
15
README.md
15
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
|
||||
|
|
Loading…
Add table
Reference in a new issue