Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

visual-studio-code: add legacy version #204141

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 21 additions & 10 deletions Casks/v/visual-studio-code.rb
Original file line number Diff line number Diff line change
@@ -1,23 +1,34 @@
cask "visual-studio-code" do
arch arm: "darwin-arm64", intel: "darwin"

version "1.98.0"
sha256 arm: "c794330a7e7b96a6f31d69c67b01c52f4d3a7574fc56d50d24e578b06495e72d",
intel: "0a5cebab8e2939592a631d162bec15589cfe573e2ebfb5cd466107ba1d0151d9"
on_catalina :or_older do
version "1.97.2"
sha256 arm: "567ba4fae5545586a0bff02eea263d59873fcf488368a9a9ccf3d4c22dfa8ebc",
intel: "cfe48cf7bce34830cb7a20ee7b5e8fbe575fe95a47ef49f62dce8ccf3087dd89"

livecheck do
skip "Legacy version"
end
end
on_big_sur :or_newer do
version "1.98.0"
sha256 arm: "c794330a7e7b96a6f31d69c67b01c52f4d3a7574fc56d50d24e578b06495e72d",
intel: "0a5cebab8e2939592a631d162bec15589cfe573e2ebfb5cd466107ba1d0151d9"

livecheck do
url "https://update.code.visualstudio.com/api/update/#{arch}/stable/latest"
strategy :json do |json|
json["productVersion"]
end
end
end

url "https://update.code.visualstudio.com/#{version}/#{arch}/stable"
name "Microsoft Visual Studio Code"
name "VS Code"
desc "Open-source code editor"
homepage "https://code.visualstudio.com/"

livecheck do
url "https://update.code.visualstudio.com/api/update/#{arch}/stable/latest"
strategy :json do |json|
json["productVersion"]
end
end

auto_updates true
depends_on macos: ">= :catalina"

Expand Down