Skip to content

Commit

Permalink
Cask name changed and chip validation added on ih-rancher(#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSotoEstrada authored Jan 25, 2023
1 parent 3f24f15 commit 2f66056
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 2 deletions.
17 changes: 17 additions & 0 deletions Casks/ih-rancher.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
cask "ih-rancher" do
version "1.7.0"

if Hardware::CPU.intel?
url "https://github.com/rancher-sandbox/rancher-desktop/releases/download/v#{version}/Rancher.Desktop-v#{version}.x86_64.dmg"
sha256 "828dde44868c3c33fe709e099f9af080143a379f9fba2e3bacd8641f5ad8e72b"
else
url "https://github.com/rancher-sandbox/rancher-desktop/releases/download/v#{version}/Rancher.Desktop-#{version}.aarch64.dmg"
sha256 "41feea152b3dcff8fb729106b195e4dc7632cda669ef7054045f72c595825242"
end

name "Rancher Desktop"
desc "Alternative to Docker Desktop"
homepage "https://rancherdesktop.io/"

app "Rancher Desktop.app"
end
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.14
0.1.15
15 changes: 15 additions & 0 deletions bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,21 @@ more troubleshooting tips."
exit 1
fi

CASKSUCCEEDED=1
for _ in 1 2 3; do
brew install ih-rancher
CASKSUCCEEDED=$?
if [ $CASKSUCCEEDED -eq 0 ]; then
break
fi
done

if [ $CASKSUCCEEDED -eq 1 ]; then
echo "Install Casks packages failed. Please contact platform support
in the #developer-platform-support channel in Slack (https://ih-epdd.slack.com/archives/C03GXCDA48Y)."
exit 1
fi

if command -v ih-setup; then
ih-setup install
SUCCEEDED=$?
Expand Down
2 changes: 1 addition & 1 deletion formula/ih-core.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class IhCore < Formula
VERSION="0.1.14"
VERSION="0.1.15"
desc "Brew formula for installing core tools used at Included Health engineering."
homepage "https://github.com/ConsultingMD/homebrew-ih-public"
license "CC BY-NC-ND 4.0"
Expand Down

0 comments on commit 2f66056

Please sign in to comment.