diff --git a/src/main/resources/clojure/install/clojure.rb b/src/main/resources/clojure/install/clojure.rb index c1680bb..cdf57e8 100644 --- a/src/main/resources/clojure/install/clojure.rb +++ b/src/main/resources/clojure/install/clojure.rb @@ -1,7 +1,8 @@ class Clojure < Formula desc "The Clojure Programming Language" homepage "https://clojure.org" - url "https://download.clojure.org/install/clojure-tools-${stable.version}.tar.gz" + url "https://github.com/clojure/brew-install/releases/download/${stable.version}/clojure-tools-${stable.version}.tar.gz" + mirror "https://download.clojure.org/install/clojure-tools-${stable.version}.tar.gz" sha256 "${stable.sha}" license "EPL-1.0" diff --git a/src/main/resources/clojure/install/clojure@version.rb b/src/main/resources/clojure/install/clojure@version.rb index addb444..12aa352 100644 --- a/src/main/resources/clojure/install/clojure@version.rb +++ b/src/main/resources/clojure/install/clojure@version.rb @@ -1,7 +1,8 @@ class ClojureAT${version.short} < Formula desc "The Clojure Programming Language" homepage "https://clojure.org" - url "https://download.clojure.org/install/clojure-tools-${project.version}.tar.gz" + url "https://github.com/clojure/brew-install/releases/download/${project.version}/clojure-tools-${project.version}.tar.gz" + mirror "https://download.clojure.org/install/clojure-tools-${project.version}.tar.gz" sha256 "SHA" license "EPL-1.0" diff --git a/src/main/resources/clojure/install/linux-install.sh b/src/main/resources/clojure/install/linux-install.sh index 8288947..c09fd21 100755 --- a/src/main/resources/clojure/install/linux-install.sh +++ b/src/main/resources/clojure/install/linux-install.sh @@ -26,7 +26,7 @@ if [[ "$prefix_param" = "-p" || "$prefix_param" = "--prefix" ]]; then fi echo "Downloading and expanding tar" -curl -O https://download.clojure.org/install/clojure-tools-${project.version}.tar.gz +curl -O https://github.com/clojure/brew-install/releases/download/${project.version}/clojure-tools-${project.version}.tar.gz tar xzf clojure-tools-${project.version}.tar.gz lib_dir="$prefix_dir/lib" diff --git a/src/main/resources/clojure/install/posix-install.sh b/src/main/resources/clojure/install/posix-install.sh index b8cd3c5..cb4eefb 100755 --- a/src/main/resources/clojure/install/posix-install.sh +++ b/src/main/resources/clojure/install/posix-install.sh @@ -26,7 +26,7 @@ if [ "$prefix_param" = "-p" -o "$prefix_param" = "--prefix" ]; then fi echo "Downloading and expanding tar" -curl -O https://download.clojure.org/install/clojure-tools-${project.version}.tar.gz +curl -O https://github.com/clojure/brew-install/releases/download/${project.version}/clojure-tools-${project.version}.tar.gz tar xzf clojure-tools-${project.version}.tar.gz lib_dir="$prefix_dir/lib" diff --git a/src/main/resources/clojure/install/win-install.ps1 b/src/main/resources/clojure/install/win-install.ps1 index 80792cf..ef31450 100755 --- a/src/main/resources/clojure/install/win-install.ps1 +++ b/src/main/resources/clojure/install/win-install.ps1 @@ -4,7 +4,7 @@ $ErrorActionPreference = 'Stop' $ProgressPreference = 'SilentlyContinue' $Version = '${project.version}' -$ClojureToolsUrl = "https://download.clojure.org/install/clojure-tools-$Version.zip" +$ClojureToolsUrl = "https://github.com/clojure/brew-install/releases/download/$Version/clojure-tools.zip" Write-Host 'Downloading Clojure tools' -ForegroundColor Gray [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]'Tls12'