29 lines
1.3 KiB
Ruby
29 lines
1.3 KiB
Ruby
cask 'visual-studio-code' do
|
|
version '1.30.1,dea8705087adb1b5e5ae1d9123278e178656186a'
|
|
sha256 'e4190da3bc04cae0b663009990a0c48621654d20a0db50ab6857b1b2d5cb0fb9'
|
|
|
|
# az764295.vo.msecnd.net/stable was verified as official when first introduced to the cask
|
|
url "https://az764295.vo.msecnd.net/stable/#{version.after_comma}/VSCode-darwin-stable.zip"
|
|
appcast 'https://vscode-update.azurewebsites.net/api/update/darwin/stable/VERSION'
|
|
name 'Microsoft Visual Studio Code'
|
|
name 'VS Code'
|
|
homepage 'https://code.visualstudio.com/'
|
|
|
|
auto_updates true
|
|
depends_on macos: '>= :mavericks'
|
|
|
|
app 'Visual Studio Code.app'
|
|
binary "#{appdir}/Visual Studio Code.app/Contents/Resources/app/bin/code"
|
|
|
|
zap trash: [
|
|
'~/Library/Application Support/Code',
|
|
'~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.microsoft.vscode.sfl*',
|
|
'~/Library/Caches/com.microsoft.VSCode',
|
|
'~/Library/Caches/com.microsoft.VSCode.ShipIt',
|
|
'~/Library/Preferences/com.microsoft.VSCode.helper.plist',
|
|
'~/Library/Preferences/com.microsoft.VSCode.plist',
|
|
'~/Library/Saved Application State/com.microsoft.VSCode.savedState',
|
|
'~/.vscode',
|
|
]
|
|
end
|