Dropbox deploy script

bowie
New Contributor II

Looking for a deployment script for Dropbox, so far I have found out that Dropbox does not provide an easy way to deploy their applications. Maybe someone has encountered the same problem before and has script/pkg that could help?

1 ACCEPTED SOLUTION
3 REPLIES 3

karthikeyan_mac
Valued Contributor

thank you, work like a charm

TryingEverythi
New Contributor III

Covert the DMG to PKG and deploy using jamf

 

Steps to convert macOS DMG files to PKG files.

 

  • Go to the folder that contains the DMG file.
  • Double click the DMG file. It gets mounted as a virtual disk and reveals its contents.
  • Copy the .app file to the Applications folder in the macOS device.

 

 

punitpatel_0-1697733048759.png

 

 

 

  • Eject the DMG file by clicking on the eject button.
  • Open Terminal.
  • Build the PKG file using the productbuild command

 

 

sudo productbuild --component /path_to_installedapp/macapp.app / path_to_savedpackage/packagename.pkg

The two arguments specify the location of the installed .app file (path_to_installedapp/macapp.app) and the location to create the PKG file (path_to_savedpackage/packagename.pkg), respectively.

 

 

  • Provide the device login password and wait for a few seconds for the build to finish.
  • The PKG file gets created at the desired location.

 

 

punitpatel_1-1697733048771.png