[TxMt] Re: what URL for new versions?

Steve King sking at arbor.net
Tue Jul 12 13:26:46 UTC 2011


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 >; }


-- 
Steve King
Sr. Software Engineer
Arbor Networks
+1 734 821 1461
www.arbornetworks.com <http://www.arbornetworks.com/>




More information about the textmate mailing list