Skip to content

Commit

Permalink
refer to github releases for downloads instead of download.clojure.org
Browse files Browse the repository at this point in the history
  • Loading branch information
puredanger committed Aug 14, 2023
1 parent 7e58247 commit 8b9b66f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/main/resources/clojure/install/clojure.rb
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/clojure/install/[email protected]
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/clojure/install/linux-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/clojure/install/posix-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/clojure/install/win-install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 8b9b66f

Please sign in to comment.