The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 2,947 other followers

Upgrading drawio throug brew functions slightly different than one expects

Posted by jpluimers on 2021/12/31

TL;DR

This fails:

brew update drawio
brew upgrade drawio

This works:

brew cask upgrade drawio

Expanded commands

$ brew update drawio
Error: This command updates brew itself, and does not take formula names.
Use `brew upgrade drawio` instead.
$ brew upgrade drawio
Error: No available formula with the name "drawio" 
$ brew cask upgrade drawio
==> Upgrading 1 outdated package:
drawio 12.9.3 -> 13.0.1
==> Upgrading drawio
==> Downloading https://github.com/jgraph/drawio-desktop/releases/download/v13.0.1/draw.io-13.0.1.dmg
==> Downloading from https://github-production-release-asset-2e65be.s3.amazonaws.com/92443980/665c0b80-84a5-11ea-95ac-a4967ee0e92d?X-Amz-Algorithm=AWS4-HMAC-SHA
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'drawio'.
==> Backing App 'draw.io.app' up to '/usr/local/Caskroom/drawio/12.9.3/draw.io.app'.
==> Removing App '/Applications/draw.io.app'.
hdiutil attach -plist -nobrowse -readonly -noidme -mountrandom /var/folders/zr/dsp77fhs6zq179n72lykjrjw0000gq/T/d20200425-33072-1e7c4l1 /Users/jeroenp/Library/Caches/Homebrew/downloads/5624c19d6a79b533228e432cb169c0abe46756eca973539ea877fe88d810f270--draw.io-13.0.1.dmg
mkbom -s -i /var/folders/zr/dsp77fhs6zq179n72lykjrjw0000gq/T/20200425-33072-ugf2rw.list -- /var/folders/zr/dsp77fhs6zq179n72lykjrjw0000gq/T/20200425-33072-15tzu4w.bom
ditto --bom /var/folders/zr/dsp77fhs6zq179n72lykjrjw0000gq/T/20200425-33072-15tzu4w.bom -- /private/var/folders/zr/dsp77fhs6zq179n72lykjrjw0000gq/T/d20200425-33072-1e7c4l1/dmg.8AxQkq /var/folders/zr/dsp77fhs6zq179n72lykjrjw0000gq/T/d20200425-33072-8qkdyg
diskutil eject /private/var/folders/zr/dsp77fhs6zq179n72lykjrjw0000gq/T/d20200425-33072-1e7c4l1/dmg.8AxQkq
cp -pR /var/folders/zr/dsp77fhs6zq179n72lykjrjw0000gq/T/d20200425-33072-8qkdyg/draw.io.app/. /usr/local/Caskroom/drawio/13.0.1/draw.io.app
chmod -Rf +w /var/folders/zr/dsp77fhs6zq179n72lykjrjw0000gq/T/d20200425-33072-8qkdyg
==> Moving App 'draw.io.app' to '/Applications/draw.io.app'.
==> Purging files for version 12.9.3 of Cask drawio
🍺  drawio was successfully upgraded!

–jeroen

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

 
%d bloggers like this: