添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

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. '

Screenshot 2023-03-16 at 1.16.59 PM.png

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
# 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

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 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 ).

Jamf's purpose is to simplify work by helping organizations manage and secure an Apple experience that end users love and organizations trust. Jamf is the only company in the world that provides a complete management and security solution for an Apple-first environment that is enterprise secure, consumer simple and protects personal privacy. Learn about Jamf .

  • Threat prevention and remediation
  • Content filtering and safe internet
  • Zero Trust Network Access (ZTNA)
  • Security visibility and compliance
  • This site contains User Content submitted by Jamf Nation community members. Jamf does not review User Content submitted by members or other third parties before it is posted. All content on Jamf Nation is for informational purposes only. Information and posts may be out of date when you view them. Jamf is not responsible for, nor assumes any liability for any User Content or other third-party content appearing on Jamf Nation.