Skip to main content
Solved

Deploy Slack on macOS Ventura via curl script


Forum|alt.badge.img+3

I am attempting to deploy Slack to our macOS Ventura devices via a curl script. When a user launches the app for the first time, they get a pop-up that says '"Slack" is damaged and can't be opened. you should move it to the Trash. '

This is only occurring in Ventura. If I download the software manually through the same URL I am calling in the curl script and install it normally, it works fine. Is there something new I have to do to get past the gatekeeper in macOS Ventura? This worked in Monterey.

 

The script in question:

#!/bin/bash # this is the full URL url="https://slack.com/ssb/download-osx-universal" # change directory to /private/tmp to make this the working directory cd /private/tmp/ # download the installer /usr/bin/curl -L $url -o slack-desktop-latest.dmg # mount the dmg hdiutil attach slack-desktop-latest.dmg -nobrowse # check if ~/Applications exists and create it if not DIRECTORY=~/Applications if [ -d "$DIRECTORY" ]; then echo "$DIRECTORY exists" elif [ ! -d "$DIRECTORY" ]; then echo "$DIRECTORY does not exist" mkdir $DIRECTORY fi # copy app to ~/Applications cp -rf /Volumes/Slack/Slack.app ~/Applications/ # modify permissions for ~/Applications chown $3: ~/Applications chmod u+w ~/Applications # unmount the dmg and remove the installer hdiutil detach -force -quiet /Volumes/Slack /bin/rm -f slack-desktop-latest.dmg exit 0

 

Best answer by iangmyers

Slack is also available as a Jamf App Catalog app with will keep it patched if you want to avoid the App Store. https://learn.jamf.com/bundle/jamf-pro-documentation-current/page/App_Installers.html

View original
Did this topic help you find an answer to your question?

12 replies

scottb
Forum|alt.badge.img+18
  • Valued Contributor
  • 1285 replies
  • March 16, 2023

Hi, wondering why you don't just use Slack from the App Store and have it update automatically?


Forum|alt.badge.img+5
  • Employee
  • 3 replies
  • Answer
  • March 16, 2023

Slack is also available as a Jamf App Catalog app with will keep it patched if you want to avoid the App Store. https://learn.jamf.com/bundle/jamf-pro-documentation-current/page/App_Installers.html


scottb
Forum|alt.badge.img+18
  • Valued Contributor
  • 1285 replies
  • March 16, 2023

Yep, either way.  Some companies do not like using curl for things for security reasons.
I'd use one of the two ways above and be done with it!


Forum|alt.badge.img+8

This is what I use

#!/bin/sh /usr/bin/curl -sL "https://slack.com/ssb/download-osx-universal" -o /tmp/slack.dmg TMPDIR=$(mktemp -d) hdiutil attach /tmp/slack.dmg -noverify -quiet -nobrowse -mountpoint "${TMPDIR}" ditto "${TMPDIR}"/Slack.app /Applications/Slack.app xattr -r -d com.apple.quarantine /Applications/Slack.app hdiutil eject "${TMPDIR}" rm /tmp/slack.dmg

 


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • 4 replies
  • March 16, 2023

Thanks for the replies. We don't use the App Store deployment because of a conflict with a config profile payload. Since we have the "require admin password to install or update apps" payload configured, the slack helper app constantly pops up asking for an admin pw every time slack pushes an update and our users are not admins.  That's also why we install to the user's application folder (per slack's documentation here).


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • 4 replies
  • March 16, 2023
shannon_pasto wrote:

This is what I use

#!/bin/sh /usr/bin/curl -sL "https://slack.com/ssb/download-osx-universal" -o /tmp/slack.dmg TMPDIR=$(mktemp -d) hdiutil attach /tmp/slack.dmg -noverify -quiet -nobrowse -mountpoint "${TMPDIR}" ditto "${TMPDIR}"/Slack.app /Applications/Slack.app xattr -r -d com.apple.quarantine /Applications/Slack.app hdiutil eject "${TMPDIR}" rm /tmp/slack.dmg

 


Thanks @shannon_pasto will give this a try


Forum|alt.badge.img+21
  • Valued Contributor
  • 321 replies
  • March 17, 2023
alex_at_work wrote:

Thanks for the replies. We don't use the App Store deployment because of a conflict with a config profile payload. Since we have the "require admin password to install or update apps" payload configured, the slack helper app constantly pops up asking for an admin pw every time slack pushes an update and our users are not admins.  That's also why we install to the user's application folder (per slack's documentation here).


Restrictions on the App Store should not preclude installing Mac App Store apps via the volume purchasing mechanism.  @scot was not suggesting installing Slack via the App Store on each individual machine.


AJPinto
Forum|alt.badge.img+26
  • Legendary Contributor
  • 2716 replies
  • March 20, 2023

If we are not wanting to deal with the AppStore, why not just download the desktop app and make a package with it?


Forum|alt.badge.img+10
  • Contributor
  • 88 replies
  • March 21, 2023

I use Installomator for most of our 3rd party app installs. Works like a charm. 


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • 4 replies
  • March 23, 2023
iangmyers wrote:

Slack is also available as a Jamf App Catalog app with will keep it patched if you want to avoid the App Store. https://learn.jamf.com/bundle/jamf-pro-documentation-current/page/App_Installers.html


@iangmyers This is something I didn't even know about. Will be pursuing this as the solution. Thanks!


Forum|alt.badge.img+2
AtillaTheC wrote:

I use Installomator for most of our 3rd party app installs. Works like a charm. 


Installomator here too... but we still get that pesty HelpTooler popup. Only workaround at the moment is to have the user re-install via the SS and it makes it go away. 

Mind you I have a CP loaded to allow auto-updates and it still gets jammed.


Forum|alt.badge.img+2
scottb wrote:

Hi, wondering why you don't just use Slack from the App Store and have it update automatically?


Just FYI -- I've noticed that on many of our machines for some reason the VPP version of the Slack.app lost it's screen recording ability. Specifically on Monterey and Ventura. 


Reply


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