Closed jps3 closed 9 years ago
Found that it uses a Sparkle update routine. Unfortunately that just takes one to the form listed above here. Looks like a custom Processor will be necessary...
Thanks for looking into this and feel free to add the .download recipe into your repo and I'll remove mine. It sounds like you've got a good handle on it but let me know if you you'd like a second set of eyes on the code or anything.
I've worked on updating and moving everything to my autopkg repo. I currently am working in a branch at: https://github.com/autopkg/jps3-recipes/tree/move_updates_from_hansen_m/Rhinoceros if you care to glance a second pair of eyes that way. I still have to do some cleanup and debugging. Also, I've not yet had a chance to see what Rhinoceros.app does with the licensing information. Does it create or modify a plist? If so, could that be put in MCX, or /Library/Preferences or elsewhere such that it's available to all users of a computer?
I've pushed my updates, and merged them into master
.
It is at https://github.com/autopkg/jps3-recipes/tree/master/Rhinoceros [https://github.com/autopkg/jps3-recipes/tree/master/Rhinoceros] for those who may be following or using this.
Downloads are fine. Rhinoceros now has licensing, even if (for now) free. That part can't really be automated as far as I can tell. There is a GUI on the first launch of the app, which requires admin privs at one point. However, as far as AutoPkg goes, the new recipes should work fine. At least, they seem without any major issues I've noticed.
I noted today that the Rhinoceros.download recipe was raising an error:
Error in com.github.jps3.munki.Rhinoceros: Processor: URLTextSearcher: Error: No match found on URL: http://www.rhino3d.com/download/wenatchee/5.0/wip?current_page=download_new
I dug around a little bit, and I thought some of the following could save you some time updating the recipe file. Note I have not actually downloaded the resultant
*.dmg
and checked to see how or where this new license key code is used, as my Internet connection at home today is very slow and with frequent lags and dropouts. (Otherwise I would have been happy to go further with this.)That URL now forwards to
http://www.rhino3d.com/download/rhino-for-mac/5.0/wip
which contains a form asking for an email address. The form appears to accept pretty much any input of the formx@y.z
(even1@2.3
worked). When the Next button is clicked, the next page displays a license key (of formXXXX-XXXX-XXXX-XXXX-XXXX-XXXX
) and a link to the*.dmg
file.Using curl, I could post a request of the initial form:
The returned HTML contains:
rhinoceros_wip_XXXXX.dmg
file does not appear to need any special request headers, cookies, etc to work, which makes things much simpler.I've forked your repo here and have started to work on a
RhinocerosUrlProvider
but I am not finished yet. (Python’surllib
andetree
libraries drive me crazy, I wish therequests
andBeautifulSoup
ones was standard!).Alternatively, Since I have recipes based off of your Rhinoceros.download (.pkg and .munki), I can just make a new, updates .download and place it in my repo. I do not wish to make any assumptions, step on toes, etc. It's been great leveraging off of the .download recipe you'd made.
-Jason