Is there an URL/RSS feed which will always show the latest version?
Due to my limited Internet access (long story), I have a shell script which runs on a remote server every night and tells me if I need to update any of my apps.
Most of the time this is pretty easy, but TextMate doesn't seem to use Sparkle for updates, so I can't figure out what URL to check. There has to be one since the app supports built-in version checking.
Any help appreciated :-)
TjL
I can't answer your question but I'd love to see the script.
Adam Merrifield seydoggy.com
820 Strasburg rd, Kitchener, Ontario, N2E 2Y3, Canada
Email: info@seydoggy.com Office: 519-489-6033 Cell: 519-574-9788
On 2011-07-11, at 22:36, TJ Luoma luomat@gmail.com wrote:
Is there an URL/RSS feed which will always show the latest version?
Due to my limited Internet access (long story), I have a shell script which runs on a remote server every night and tells me if I need to update any of my apps.
Most of the time this is pretty easy, but TextMate doesn't seem to use Sparkle for updates, so I can't figure out what URL to check. There has to be one since the app supports built-in version checking.
Any help appreciated :-)
TjL
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 2011-07-11 22:36, TJ Luoma wrote:
Is there an URL/RSS feed which will always show the latest version?
Wireshark to the rescue!
TM does a POST to http://update.macromates.com/check. The POST data contains your current version, serial number, type of update (major/minor/cutting-edge) and a few other details. The result of the POST is a redirect to a URL containing a plist pointing to the download URL. It looks like you can skip the initial POST and grab the plist directly. There are three different URLs depending on whether you want major updates only, minor updates, or the cutting-edge distribution.
http://update.macromates.com/versions/major.plist http://update.macromates.com/versions/minor.plist http://update.macromates.com/versions/cutting.plist
macduff:~$ curl http://update.macromates.com/versions/cutting.plist { productDownloadURL = ('http://download.macromates.com/TextMate_r1631.tbz'); productVersion = '1631'; productSignature = <302c0214 54074907 c3905829 1563c14a 0d413147 8a5a3a18 02140231 156bac9c 384ad0cb ac3ad5d0 cf1c717e e086 >; }
On 12 Jul 2011, at 15:26, Steve King wrote:
On 2011-07-11 22:36, TJ Luoma wrote:
Is there an URL/RSS feed which will always show the latest version?
Wireshark to the rescue!
TM does a POST to [...]
Please disregard this info, it is not a stable API.
You are however welcome to send a HEAD request to https://download.macromates.com/ — this returns a 302 Found with Location pointing to latest release (with version number in that URL).