mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-10-25 23:30:38 +02:00
Add artichoke-dev to install the latest Artichoke nightly build
Allow to install the latest official Artichoke nightly build from https://github.com/artichoke/nightly/releases
This commit is contained in:
parent
3ef704e7ad
commit
c27fc59ad8
2 changed files with 24 additions and 0 deletions
|
|
@ -750,6 +750,18 @@ build_package_truffleruby() {
|
|||
"${PREFIX_PATH}/lib/truffle/post_install_hook.sh"
|
||||
}
|
||||
|
||||
build_package_artichoke() {
|
||||
build_package_copy
|
||||
|
||||
rm -rf "$PREFIX_PATH"
|
||||
mkdir -p "$PREFIX_PATH/bin"
|
||||
cd "${PREFIX_PATH}/bin"
|
||||
ln -fs ../artichoke ruby
|
||||
ln -fs ../airb irb
|
||||
ln -fs ../artichoke artichoke
|
||||
ln -fs ../airb airb
|
||||
}
|
||||
|
||||
remove_windows_files() {
|
||||
cd "$PREFIX_PATH"
|
||||
rm -f bin/*.exe bin/*.dll bin/*.bat bin/jruby.sh
|
||||
|
|
|
|||
12
share/ruby-build/artichoke-dev
Normal file
12
share/ruby-build/artichoke-dev
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
case $(uname -s) in
|
||||
Linux)
|
||||
install_package "artichoke-nightly" "https://github.com/artichoke/nightly/releases/latest/download/artichoke-nightly-x86_64-unknown-linux-gnu.tar.gz" artichoke
|
||||
;;
|
||||
Darwin)
|
||||
install_package "artichoke-nightly" "https://github.com/artichoke/nightly/releases/latest/download/artichoke-nightly-x86_64-apple-darwin.tar.gz" artichoke
|
||||
;;
|
||||
*)
|
||||
colorize 1 "Unsupported operating system: $(uname -s)"
|
||||
return 1
|
||||
;;
|
||||
esac
|
||||
Loading…
Add table
Add a link
Reference in a new issue