Commit c27fc59a authored by deepj's avatar deepj
Browse files

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
parent 3ef704e7
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -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 −0
Original line number Diff line number Diff line
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