diff --git a/Casks/t/texstudio.rb b/Casks/t/texstudio.rb index f1c8bb4828f4..7d0171869b71 100644 --- a/Casks/t/texstudio.rb +++ b/Casks/t/texstudio.rb @@ -1,17 +1,27 @@ cask "texstudio" do version "4.7.3" - sha256 "ce1cd5ab82d907165e232dfc5ccf8329f086e375f4936c6b9da9b0091ddd0674" + sha256 arm: "314da45d6071c4e18643282b25f6df7114bd42964d85b63526ffbfa048d993e7", + intel: "ce1cd5ab82d907165e232dfc5ccf8329f086e375f4936c6b9da9b0091ddd0674" + + on_arm do + url "https://github.com/texstudio-org/texstudio/releases/download/#{version}/texstudio-#{version}-osx-m1.zip", + verified: "github.com/texstudio-org/texstudio/" + + app "texstudio-#{version}-osx-m1.app" + end + on_intel do + url "https://github.com/texstudio-org/texstudio/releases/download/#{version}/texstudio-#{version}-osx.dmg", + verified: "github.com/texstudio-org/texstudio/" + + app "texstudio.app" + end - url "https://github.com/texstudio-org/texstudio/releases/download/#{version}/texstudio-#{version}-osx.dmg", - verified: "github.com/texstudio-org/texstudio/" name "TeXstudio" desc "LaTeX editor" homepage "https://texstudio.org/" depends_on macos: ">= :big_sur" - app "texstudio.app" - zap trash: [ "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/texstudio.sfl*", "~/Library/Preferences/texstudio.plist",