mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-24 22:24:53 +02:00
ci: [skip travis] Fix typo in completion generation...
This commit is contained in:
parent
1e901623d5
commit
f8b1c48ff4
@ -120,7 +120,7 @@ before_deploy:
|
|||||||
if [[ $TRAVIS_OS_NAME == "windows" ]]; then
|
if [[ $TRAVIS_OS_NAME == "windows" ]]; then
|
||||||
echo "Building Windows 64-bit, target: $TARGET...";
|
echo "Building Windows 64-bit, target: $TARGET...";
|
||||||
cargo build --release --target $TARGET;
|
cargo build --release --target $TARGET;
|
||||||
local target_dir=$(ls target/release/build/bottom-*/out/rg.bash | head -n1 | xargs dirname)
|
local target_dir=$(ls target/release/build/bottom-*/out/btm.bash | head -n1 | xargs dirname)
|
||||||
cp -r $target_dir completions
|
cp -r $target_dir completions
|
||||||
mv "./target/$TARGET/release/btm" "btm.exe";
|
mv "./target/$TARGET/release/btm" "btm.exe";
|
||||||
strip "btm.exe"
|
strip "btm.exe"
|
||||||
@ -133,7 +133,7 @@ before_deploy:
|
|||||||
echo "Building Windows 32-bit...";
|
echo "Building Windows 32-bit...";
|
||||||
cargo clean;
|
cargo clean;
|
||||||
cargo build --release --target i686-pc-windows-msvc;
|
cargo build --release --target i686-pc-windows-msvc;
|
||||||
local target_dir=$(ls target/release/build/bottom-*/out/rg.bash | head -n1 | xargs dirname)
|
local target_dir=$(ls target/release/build/bottom-*/out/btm.bash | head -n1 | xargs dirname)
|
||||||
cp -r $target_dir completions
|
cp -r $target_dir completions
|
||||||
mv "./target/i686-pc-windows-msvc/release/btm" "btm.exe";
|
mv "./target/i686-pc-windows-msvc/release/btm" "btm.exe";
|
||||||
strip "btm.exe"
|
strip "btm.exe"
|
||||||
@ -163,7 +163,7 @@ before_deploy:
|
|||||||
cargo build --release;
|
cargo build --release;
|
||||||
cp ./target/release/btm btm;
|
cp ./target/release/btm btm;
|
||||||
strip btm;
|
strip btm;
|
||||||
local target_dir=$(ls target/release/build/bottom-*/out/rg.bash | head -n1 | xargs dirname)
|
local target_dir=$(ls target/release/build/bottom-*/out/btm.bash | head -n1 | xargs dirname)
|
||||||
cp -r $target_dir completions
|
cp -r $target_dir completions
|
||||||
echo "Tar-ing macOS/Linux binary and completions..."
|
echo "Tar-ing macOS/Linux binary and completions..."
|
||||||
tar -czvf bottom_$TARGET.tar.gz btm completions;
|
tar -czvf bottom_$TARGET.tar.gz btm completions;
|
||||||
|
@ -27,7 +27,7 @@ package() {
|
|||||||
install -Dm755 target/release/btm "$pkgdir/usr/bin/btm"
|
install -Dm755 target/release/btm "$pkgdir/usr/bin/btm"
|
||||||
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
|
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
|
|
||||||
local target_dir=$(ls target/release/build/bottom-*/out/rg.bash | head -n1 | xargs dirname)
|
local target_dir=$(ls target/release/build/bottom-*/out/btm.bash | head -n1 | xargs dirname)
|
||||||
install -Dm644 "$target_dir"/_btm "$pkgdir/usr/share/zsh/site-functions/_btm"
|
install -Dm644 "$target_dir"/_btm "$pkgdir/usr/share/zsh/site-functions/_btm"
|
||||||
install -Dm644 "$target_dir"/btm.bash "$pkgdir/usr/share/bash-completion/completions/btm"
|
install -Dm644 "$target_dir"/btm.bash "$pkgdir/usr/share/bash-completion/completions/btm"
|
||||||
install -Dm644 "$target_dir"/btm.fish "$pkgdir/usr/share/fish/vendor_completions.d/btm.fish"
|
install -Dm644 "$target_dir"/btm.fish "$pkgdir/usr/share/fish/vendor_completions.d/btm.fish"
|
||||||
|
@ -11,7 +11,7 @@ class Bottom < Formula
|
|||||||
end
|
end
|
||||||
|
|
||||||
def install
|
def install
|
||||||
bash_completion.install "completion/rg.bash"
|
bash_completion.install "completion/btm.bash"
|
||||||
zsh_completion.install "completion/_rg"
|
zsh_completion.install "completion/_rg"
|
||||||
bin.install "btm"
|
bin.install "btm"
|
||||||
ohai "You're done! Run with \"btm\""
|
ohai "You're done! Run with \"btm\""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user