lindegroup / autopkgr

AutoPkgr is a free Mac app that makes it easy to install and configure AutoPkg.
http://www.lindegroup.com/autopkgr
Apache License 2.0
532 stars 51 forks source link

Using CURLTextSearcher with & in the URL #678

Closed joeborner closed 2 years ago

joeborner commented 2 years ago

Hi All, Recently started trying to create my own AutoPKGr recipes and have succesfully managed a few. But I recently tried creating one for a driver download that I can't quite figure out.

Issue: CURLTextSearcher does not work when there are multiple variables in the URL, from testing this appears to be caused by & in the URL. (example: https://www.cdata.com/download/getfile.aspx?file=demo/RQDG-M/setup.dmg&name=QuickBooks%20ODBC%20Driver%20for%20Mac)

Troubleshooting: So far I have tried encoding the URL to remove special characters, using a short link (bit.ly) and downloading a copy of the webpage manually and changing the URL to file://%RECIPE_CACHE_DIR%/%NAME%.html (this method works, but I have not been able to automate the recipe to download the file locally).

Recipe: https://github.com/mac-seven/Recipes/tree/main/Quickbooks%20ODBC%20Driver

Any pointers will be appreciated!

homebysix commented 2 years ago

Hello @joeborner - This issue is more appropriately directed at the autopkg project.

Briefly, I can provide this guidance:

joeborner commented 2 years ago

Hi @homebysix - Thanks, those small adjustments were the last tweaks I was looking for, it's now working as expected!