From 027f8a8c3241f3918d28003f42dfbb239f6a35df Mon Sep 17 00:00:00 2001 From: Clement Tsang <34804052+ClementTsang@users.noreply.github.com> Date: Tue, 25 Aug 2020 19:06:12 -0400 Subject: [PATCH] ci: minor CI fixes for automatic deploys (#202) Mainly missing some `cd` lines in AUR builds and clarifying the macOS config location. --- deployment/linux/arch/PKGBUILD.template | 3 +++ deployment/macos/homebrew/bottom.rb.template | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/deployment/linux/arch/PKGBUILD.template b/deployment/linux/arch/PKGBUILD.template index 0519e734..583209ae 100644 --- a/deployment/linux/arch/PKGBUILD.template +++ b/deployment/linux/arch/PKGBUILD.template @@ -13,14 +13,17 @@ license=('MIT') sha512sums=('$hash1') build() { + cd $pkgname-$pkgver cargo build --release --locked } check() { + cd $pkgname-$pkgver cargo test --release --locked } package() { + cd $pkgname-$pkgver install -Dm755 target/release/btm "$pkgdir/usr/bin/btm" install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE" } \ No newline at end of file diff --git a/deployment/macos/homebrew/bottom.rb.template b/deployment/macos/homebrew/bottom.rb.template index 65b6f896..451905cf 100644 --- a/deployment/macos/homebrew/bottom.rb.template +++ b/deployment/macos/homebrew/bottom.rb.template @@ -14,7 +14,7 @@ class Bottom < Formula bin.install "btm" ohai "You're done! Run with \"btm\"" ohai "For runtime flags, see \"btm --help\"" - ohai "If you want to configure bottom, by default bottom looks for a file in $HOME/.config/bottom/bottom.toml" + ohai "If you want to configure bottom, by default bottom looks for a file in $HOME/Library/Application Support/bottom.toml or $HOME/.config/bottom/bottom.toml" end end \ No newline at end of file