Results 1 to 6 of 6

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: Add 'deb' to Safari Download Plug-In

  1. #1
    Livin the iPhone Life
    Join Date
    May 2008
    Posts
    8,021
    Thanks
    102
    Thanked 789 Times in 731 Posts

    Default Add 'deb' to Safari Download Plug-In
    I want to add 'deb' (and other) file-types to the Safari Download Plug-In and assumed it would be easy .... just duplicate something and change the file type. IE:

    I copied/duplicated the following section from 'zip' area and changed zip to deb. Of course, it doesn't work !! What am I missing?

    HTML Code:
    <key>application/deb</key>
    <dict>
    	<key>WebPluginExtensions</key>
    	<array>
    		<string>deb</string>
    	</array>
    	<key>WebPluginTypeDescription</key>
    	<string>debFile</string>
    	<key>WebPluginTypeEnabled</key>
    	<true/>
    </dict>

    Thanks all

  2. #2
    In WebPluginMIMETypes/application/octet-stream, just add 'deb' to the array of WebPlugExtensions. I just tried it, works fine.

    The result should look like this:
    -deb-addition.png
    Last edited by DaveiPhone; 2009-02-10 at 10:39 PM.

  3. The Following User Says Thank You to DaveiPhone For This Useful Post:

    Mes (2009-02-11)

  4. #3
    Livin the iPhone Life
    Join Date
    May 2008
    Posts
    8,021
    Thanks
    102
    Thanked 789 Times in 731 Posts

    Thanks DaveiPhone.... but no cigar ... yet

    Your simple edit was the first thing I tried ... without success. Hense the reason I started exploring other possibilities.

    My Safari Download Plug-In is version 2.0. I assume you're using the same. Either mine is corrupted, or something else is getting in the way.

    But ... I have a idea. Could you send me your edited Info.plist which includes the working deb addition? Would like to give it a try. If it works, I'll diff our versions and post the solution.

    Thanks in advance.

    Update: Never mind. It's working. Sorta .....
    ----- Solution . Download from a different site . Hahaha
    Have no idea why it works on one site, but not another. But at least the mod does work !!! More (keep reading)

    Update 2: Now I really am confused..............
    Without any edits to Info.plist (deb not in Info.plist)
    -- All debs from MMI download correctly:
    ------ example: http://apt.modmyi.com/2debs/49ers2.1.deb
    -- And of course the one I really want still does not...
    ------ http://www.volatile-dev.com/LockCale...endar_0.3b.deb

    Any suggestions?
    Last edited by Mes; 2009-02-11 at 02:06 AM.

  5. #4
    If you use the command from Terminal:

    curl -I http://www.volatile-dev.com/LockCale...endar_0.3b.deb

    it returns:

    HTTP/1.1 200 OK
    Date: Wed, 11 Feb 2009 01:13:08 GMT
    Server: Apache
    Last-Modified: Mon, 09 Feb 2009 00:28:54 GMT
    ETag: "5000000036390-1796e-46271749b3d80"
    Accept-Ranges: bytes
    Content-Length: 96622
    Content-Type: text/plain

    Where curl -I http://apt.modmyi.com/2debs/49ers2.1.deb returns:

    HTTP/1.0 200 OK
    Set-Cookie: ServerId=1218; path=/
    Date: Wed, 11 Feb 2009 01:15:44 GMT
    Server: Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.5
    X-Powered-By: PHP/5.2.5
    Content-Description: File Transfer
    Content-Disposition: attachment; filename=49ers2.1.deb
    Content-Transfer-Encoding: binary
    Expires: 0
    Cache-Control: must-revalidate, post-check=0, pre-check=0
    Pragma: public
    Content-Length: 3361982
    Connection: close
    Content-Type: application/octet-stream

    So, as far as I understand it (which isn't very far!), the volatile-dev server doesn't have the mime type set up correctly.
    I'm not sure what the solution is, but if your end goal is to install the lockcalendar manually, you could download it to your desktop computer and SSH it over to the phone.

  6. The Following User Says Thank You to DaveiPhone For This Useful Post:

    Mes (2009-02-11)

  7. #5
    Livin the iPhone Life
    Join Date
    May 2008
    Posts
    8,021
    Thanks
    102
    Thanked 789 Times in 731 Posts

    Wonderful....... that explains it. Thanks. Learn something new every day. Kinda figured it had something to do with the site. Never used curl. But I won't forget.

    BTW: NP. LockCalendar already installed. My long-time routine is to download to the computer, SSH it over, then dpkg -i. I was exploring alternatives and ran across this weird issue. Thanks again

    Quote Originally Posted by DaveiPhone View Post
    ....So, as far as I understand it (which isn't very far!), the volatile-dev server doesn't have the mime type set up correctly.
    I'm not sure what the solution is, but if your end goal is to install the lockcalendar manually, you could download it to your desktop computer and SSH it over to the phone.
    One last question. Any idea why it works with IE on a PC, or Safari on the Mac? These browsers more forgiving?
    Last edited by Mes; 2009-02-11 at 02:59 AM. Reason: Automerged Doublepost

  8. #6
    For me, it actually DOESN'T work on Safari on the Mac either. I just clicked the link and got a page full of garbage text displayed, whereas clicking on the modmyi link downloads the file as expected.

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •