Skip to main content
Question

Slack OS X app auto-install/update deployment method / script


Show first post

30 replies

Forum|alt.badge.img+4
  • Contributor
  • 16 replies
  • April 7, 2020

Thanks @JarvisUno I will test it out soon.


MacJunior
Forum|alt.badge.img+9
  • Valued Contributor
  • 129 replies
  • February 11, 2021

Anybody has a script to install and download the latest version of Slack?


Forum|alt.badge.img+6
  • Contributor
  • 68 replies
  • March 8, 2021

Any script for M1 chip laptop


Forum|alt.badge.img+1
  • New Contributor
  • 3 replies
  • March 19, 2021

This script works for me. It is based on the Google Chrome DL and Install script found here: https://www.jamf.com/jamf-nation/discussions/20894/install-latest-version-of-google-chrome-without-re-packaging#responseChild196658

#!/bin/sh
dmgfile="Slack.dmg"
volname="Slack.app"
logfile="/Library/Logs/SlackInstallScript.log"

url='https://slack.com/ssb/download-osx'

/bin/echo "--" >> ${logfile}
/bin/echo "`date`: Downloading latest version." >> ${logfile}
/usr/bin/curl -L -o /tmp/${dmgfile} "${url}" >/dev/null 2>&1
/bin/echo "`date`: Mounting installer disk image." >> ${logfile}
/usr/bin/hdiutil attach /tmp/${dmgfile} -nobrowse -quiet
/bin/echo "`date`: Installing..." >> ${logfile}
ditto -rsrc "/Volumes/${volname}/Slack.app" "/Applications/Slack.app"
/bin/sleep 10
/bin/echo "`date`: Unmounting installer disk image." >> ${logfile}
/usr/bin/hdiutil detach $(/bin/df | /usr/bin/grep "${volname}" | awk '{print $1}') -quiet
/bin/sleep 10
/bin/echo "`date`: Deleting disk image." >> ${logfile}
/bin/rm /tmp/"${dmgfile}"

exit 0

Forum|alt.badge.img+7
  • Contributor
  • 97 replies
  • May 21, 2021

Hey All,

Thought I would post this to help others. I found the links for the 3 different installers:

Intel = curl "https://slack.com/ssb/download-osx" -s -L -I -o /dev/null -w '%{url_effective}'
Silicon = curl "https://slack.com/ssb/download-osx-silicon" -s -L -I -o /dev/null -w '%{url_effective}'
Universal = curl "https://slack.com/ssb/download-osx-universal" -s -L -I -o /dev/null -w '%{url_effective}'

Article pulled from: https://slack.com/help/articles/360035635174-Deploy-Slack-for-macOS

Hope this helps

Shawn OG


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings