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!

6 REPLIES 6

junjishimazaki
Valued Contributor

@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
Valued Contributor

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
Valued Contributor

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

Heavy_D
Contributor III

Will this script work for both versions of the installer now out for macs? M1 and Intel platforms.

I posted this script 2 years ago, so things get updated....with that being said. If you went to the 8x8 download site there are 2 versions (one for intel and one for apple silicon).  So, just update the script and create a conditional statement to check if the Mac is intel or arm processor. If it's an Intel processor, assign the download variable the Intel installer link and if it's an Apple Silicon then assign the download variable the Apple Silicon installer link.