Skip to content

Commit d395d1a

Browse files
authored
Merge pull request #2603 from eregon/fix-jruby-dev
Fix jruby-dev to use updated URLs and support arm64 too
2 parents 95b166e + 8d505cf commit d395d1a

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

share/ruby-build/jruby-dev

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
1-
case $(uname -s) in
2-
Linux)
3-
install_package "jruby-head" "https://github.com/ruby/jruby-dev-builder/releases/latest/download/jruby-head-ubuntu-24.04.tar.gz" jruby
1+
platform="$(uname -s)-$(uname -m)"
2+
case $platform in
3+
Linux-x86_64)
4+
install_package "jruby-head" "https://github.com/ruby/jruby-dev-builder/releases/latest/download/jruby-head-ubuntu-24.04-x64.tar.gz" jruby
45
;;
5-
Darwin)
6-
install_package "jruby-head" "https://github.com/ruby/jruby-dev-builder/releases/latest/download/jruby-head-macos-latest.tar.gz" jruby
6+
Linux-aarch64)
7+
install_package "jruby-head" "https://github.com/ruby/jruby-dev-builder/releases/latest/download/jruby-head-ubuntu-24.04-arm64.tar.gz" jruby
8+
;;
9+
Darwin-x86_64)
10+
install_package "jruby-head" "https://github.com/ruby/jruby-dev-builder/releases/latest/download/jruby-head-darwin-x64.tar.gz" jruby
11+
;;
12+
Darwin-arm64)
13+
install_package "jruby-head" "https://github.com/ruby/jruby-dev-builder/releases/latest/download/jruby-head-darwin-arm64.tar.gz" jruby
714
;;
815
*)
9-
colorize 1 "Unsupported operating system: $(uname -s)"
16+
colorize 1 "Unsupported platform: $platform"
1017
return 1
1118
;;
1219
esac

0 commit comments

Comments
 (0)