Skip to main content
Question

Packaging Maya 2020

  • June 22, 2020
  • 28 replies
  • 157 views

Show first post

28 replies

Forum|alt.badge.img+7
  • Valued Contributor
  • January 23, 2021

SUCCESS. Here's the script I used for AutoDesk Flame and it installed all 30 packages by looping through the /dist folder. The problem with the earlier loop (I believe anyway) is that I had declared it to be a sh script but the syntax is for bash. Once I got the syntax fixed I then realized that there was no need to use the "find" command at all, since all the files in the path variable were .pkg files in the first place. Sadly, the software itself is problematic. Whether I use JAMF to deploy or perform a manual install the stone+wire Process won't start up and Flame exits, but that's another problem for another day.

#!/bin/bash


#Copy installer  to /tmp
#Modify values below as necessary (Usually: year and NetworkServer for Flame 2021)

#Set variables

year="2021"
pkgPath="/tmp/Install Flame Educational Edition.app/Contents/Resources/dist/"


#pKey="Not needed for Flame 2021 Educational if using networkServer"
networkServer="server_path_redacted_for_posting"
licPath="/Library/Application Support/Autodesk/AdskLicensingService/${year}.0.0.F"
licFile="LICPATH.lic"
lgsFile="LGS.data"

#Declare functions

runInstaller ()
{
   for file in "${pkgPath}"*.pkg 
   do
    /usr/sbin/installer -pkg "${file}" -target / -verbose
done
}

createLicenseFiles ()
{
    if [[ ! -e "${licPath}" ]];
    then
        /bin/mkdir "${licPath}"
    fi
    /usr/bin/touch "${licPath}/${lgsFile}"
    /bin/chmod 777 "${licPath}/${lgsFile}"
    /usr/bin/touch "${licPath}/${licFile}"
    /bin/chmod 777 "${licPath}/${licFile}"
    /bin/echo "SERVER ${networkServer} 000000000000" > "${licPath}/${licFile}"
    /bin/echo "USE_SERVER" >> "${licPath}/${licFile}"
    /bin/echo "_NETWORK" >> "${licPath}/${lgsFile}"
}
licenceHelper ()
{
    /Library/Application Support/Autodesk/AdskLicensing/Current/helper/AdskLicensingInstHelper change --pk "${pKey}" --pv "${year}.0.0.F" --lm NETWORK --ls "${networkServer}"
}
cleanUp ()
{
    /bin/rm -rf "${pkgPath}"

}

#Run script
runInstaller
createLicenseFiles
licenceHelper
cleanUp

Forum|alt.badge.img+6
  • Contributor
  • June 29, 2021

This script worked perfectly fine for Maya 2020. Now they want Maya 2022. Anyone altered this script already to use for Maya 2022? I tried modifying 2020 to 2022 but in this new installer there are a few other files in the content/licensing folder.

So please do share your script. Thank you in advance.


Forum|alt.badge.img+5
  • Contributor
  • June 29, 2021

@DeployAdam

I think what you are looking for (and for any other weary internet travelers that end up on this post looking for 2022 stuff) is here:
2022 Autodesk Stuff