Installing 8x8 Work App via Jamf

sfaeder
New Contributor III

Does anyone know if the 8x8 Work app can be deployed via Jamf? I tried converting the dmg to a pkg in composer, but that didn't seem to work. I'm also open to using a script to install it. Any thoughts are appreciated. Thank you!

4 REPLIES 4

junjishimazaki
Contributor II

@sfaeder , I use a script to deploy most of my applications fro Jamf
Here is my script for 8x8

!/bin/sh

-------------------------------------------------------------------------------------

Universal App Installer Script

-------------------------------------------------------------------------------------

DESCRIPTION

Automatically download and install nearly any app from a direct download link

App can be packaged as .dmg, .pkg, or .zip, and have either the .app or a .pkg inside

-------------------------------------------------------------------------------------

ADD THE DIRECT DOWNLOAD LINK FOR YOUR APP HERE:

Example: DownloadURL="https://dl.google.com/chrome/mac/stable/googlechrome.dmg"

DownloadURL="https://vod-updates.8x8.com/ga/work-dmg-v7.7.4-1.dmg"

-------------------------------------------------------------------------------------

LEAVE THIS CODE ALONE:

Create directory /tmp/jamf, continue if directory already exists

mkdir /tmp/jamf || :

Change directory to /tmp/jamf

cd /tmp/jamf

Download installer container into /tmp/jamf

-O downloads file without changing its name

curl $DownloadURL -O -L

If container is a .dmg:

Mount installer container

-nobrowse to hide the mounted .dmg

-noverify to skip .dmg verification

-mountpoint to specify mount point

yes | hdiutil attach /tmp/jamf/*.dmg -nobrowse -noverify -mountpoint /tmp/jamf/mount ||

Else if container is a .pkg

Run installer package with the boot drive as the destination

installer -pkg /tmp/jamf/*.pkg -target / ||

Else if container is anything else, presumably a zip file:

Unzip installer container and place contents into /tmp/jamf/mount, continue on error

unzip /tmp/jamf/* -d /tmp/jamf/mount || :

If contents is installer .pkg:

Run installer package with the boot drive as the destination

installer -pkg /tmp/jamf/mount/*.pkg -target / ||

Else if contents is .app:

Copy the .app file from the installer container to /Applications

Preserve all file attributes and ACLs

cp -pPR /tmp/jamf/mount/*.app /Applications || :

Unmount the secondary installation folder, continue on error

hdiutil detach /tmp/jamf/mount || :

Delete the main installation folder

rm -r /tmp/jamf

junjishimazaki
Contributor II

This script will work for most or all dmg file types. I just point the installer to the downloader link. The script does the rest

sfaeder
New Contributor III

Dude you are awesome! This worked!! Thank you so much!!!!

junjishimazaki
Contributor II

You're welcome. This is basically a universal dmg installer. As long as you have the dmg installer link you can use this script.