Install Miro
Summary
These scripts will install the latest version of Miro.
Please note there is 2 versions of the script. One is for installing the arm64 version of the application intended for Macs with an Apple Silicon CPU, the other script installs the x86_64 version of the app for Macs with an Intel CPU.
Script Content (for Apple Silicon CPU Macs – arm64)
#!/bin/bash
cd "/Library/Application Support/JAMF/tmp"
# Update variables. These shouldn't need to change for each update
dmgname="Miro.dmg"
dmglink="https://desktop.miro.com/platforms/darwin-arm64/Miro.dmg"
dmgmountedname="Miro"
apptoreplace="Miro.app"
apptoreplacerunningname="Miro"
# Download DMG
curl -L -O "$dmglink"
# Mount DMG
hdiutil mount -nobrowse $dmgname
# Kill the app if it is running
killall -Kill "$apptoreplacerunningname"
# Remove the app from the Applications Folder
rm -rf "/Applications/$apptoreplace"
# Copy the new version into the Applications Folder
cp -R "/Volumes/$dmgmountedname/$apptoreplace" /Applications
sudo xattr -rc "/Applications/$apptoreplace/"
# Unmount the DMG
hdiutil unmount "/Volumes/$dmgmountedname"
# Remove the downloaded DMG
rm $dmgname
# Clear out the used variables
unset dmgname
unset dmglink
unset dmgmountedname
unset apptoreplace
unset apptoreplacerunningname
exit 0
Script Content (for Intel CPU Macs – x86_64)
#!/bin/zsh
cd "/Library/Application Support/JAMF/tmp"
# Update variables. These shouldn't need to change for each update
dmgname="Miro.dmg"
dmglink="https://desktop.miro.com/platforms/darwin/Miro.dmg"
dmgmountedname="Miro"
apptoreplace="Miro.app"
apptoreplacerunningname="Miro"
# Download DMG
curl -L -O "$dmglink"
# Mount DMG
hdiutil mount -nobrowse $dmgname
# Kill the app if it is running
killall -Kill "$apptoreplacerunningname"
# Remove the app from the Applications Folder
rm -rf "/Applications/$apptoreplace"
# Copy the new version into the Applications Folder
cp -R "/Volumes/$dmgmountedname/$apptoreplace" /Applications
sudo xattr -rc "/Applications/$apptoreplace/"
# Unmount the DMG
hdiutil unmount "/Volumes/$dmgmountedname"
# Remove the downloaded DMG
rm $dmgname
# Clear out the used variables
unset dmgname
unset dmglink
unset dmgmountedname
unset apptoreplace
unset apptoreplacerunningname
exit 0
Concluding Comments
Miro is an online collaborative whiteboard platform that enables distributed teams to work effectively together, from brainstorming with digital sticky notes to planning and managing agile workflows.
About the author