Skip to content

Add missing build step for elvish and fish completions on MacOS #221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -202,18 +202,26 @@ build.stamp: target/release/rig target/x86_64-apple-darwin/release/rig \
mkdir -p build-arm64/usr/local/bin
mkdir -p build-arm64/usr/local/share/zsh/site-functions
mkdir -p build-arm64/opt/homebrew/etc/bash_completion.d/
mkdir -p build-arm64/opt/homebrew/share/elvish/lib
mkdir -p build-arm64/opt/homebrew/share/fish/vendor_completions.d/
cp target/release/rig build-arm64/usr/local/bin/
strip -x build-arm64/usr/local/bin/rig
find target/release/build -name _rig -exec cp \{\} build-arm64/usr/local/share/zsh/site-functions \;
find target/release/build -name rig.bash -exec cp \{\} build-arm64/opt/homebrew/etc/bash_completion.d \;
find target/release/build -name rig.elv -exec cp \{\} build-arm64/opt/homebrew/share/elvish/lib \;
find target/release/build -name rig.fish -exec cp \{\} build-arm64/opt/homebrew/share/fish/vendor_completions.d \;
# x86_64
mkdir -p build-x86_64/usr/local/bin
mkdir -p build-x86_64/usr/local/share/zsh/site-functions
mkdir -p build-x86_64/opt/homebrew/etc/bash_completion.d/
mkdir -p build-x86_64/opt/homebrew/share/elvish/lib
mkdir -p build-x86_64/opt/homebrew/share/fish/vendor_completions.d/
cp target/x86_64-apple-darwin/release/rig build-x86_64/usr/local/bin/
strip -x build-x86_64/usr/local/bin/rig
find target/release/build -name _rig -exec cp \{\} build-x86_64/usr/local/share/zsh/site-functions \;
find target/release/build -name rig.bash -exec cp \{\} build-x86_64/opt/homebrew/etc/bash_completion.d \;
find target/release/build -name rig.elv -exec cp \{\} build-x86_64/opt/homebrew/share/elvish/lib \;
find target/release/build -name rig.fish -exec cp \{\} build-x86_64/opt/homebrew/share/fish/vendor_completions.d \;
# Rig.app
mkdir build-arm64/Applications
mkdir build-x86_64/Applications
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# rig development

* macOS packages now include completion files for elvish and fish shells
(#221, @TymekDev).

# rig 0.7.0

* Bash completions work well again (#202).
Expand Down