How To Create A Repository For Installer!

Discussion in 'iPod touch' started by ipodtouchpros, Mar 30, 2008.

  1. ipodtouchpros macrumors member

    ipodtouchpros

    Joined:
    Feb 23, 2008
    Location:
    AZ
    #1
    HI EVERYONE, A LOT OF PEOPLE HAVE BEEN ASKING ABOUT HOW TO MAKE A REPOSITORY FOR INSTALLER SO I AM GOING TO SHOW YOU HOW TO MAKE ONE.

    DOWNLOADING THE .XML CODE

    1: Download the .xml code here: http://ipodtouchpros.googlepages.com/repo.zip

    EXTRACTING:

    2. After it's done downloading, just extract the zip folder to your desktop.

    MAKING A GOOGLEPAGES ACCOUNT

    3. Make a googlepages account or if you already have one then that's ok too. This is what the googlepages account should look like if you've done it right: http://i5.photobucket.com/albums/y199/crazyloof/Step2.jpg

    OPENING YOUR REPOSITORY

    4. Open up the repo page with notepad.exe like this http://i5.photobucket.com/albums/y199/crazyloof/step3.jpg then do this http://i5.photobucket.com/albums/y199/crazyloof/step32.jpg

    NAMING YOUR REPOSITORY AND PUTTING INFO ON IT

    5. Now you have to edit your repository by following this picture: http://i5.photobucket.com/albums/y199/crazyloof/step4.jpg

    SAVING YOUR REPO

    6. Once you follow that picture, and put everything where it needs to be click "save as" and then type in repo.xml and make sure that you save it to ALL FILES! Like this: http://i5.photobucket.com/albums/y199/crazyloof/step42.jpg

    UPLOADING PACKAGE TO YOUR WEBSITE

    7. Before adding a package to your repo, you must upload the .zip of the item you want on your repo to your googlepages account. So lets say you have a 112 weather zip folder. You go to your website and upload the 112 weather. When you upload it should look like this:http://i5.photobucket.com/albums/y199/crazyloof/step4123.jpg

    ADDING PACKAGES TO YOUR REPOSITORY

    8. Once you have saved it, open it back up with notepad and follow these instructions: http://i5.photobucket.com/albums/y199/crazyloof/step43.jpg

    ADDING MORE PACKAGES TO YOUR REPOSITORY

    9. To add more packages to your repo, all you do is copy the <dict> above the <key>bundleidentifier<key> and scroll down while copying and then stop at the
    </array>
    </array>
    </dict>
    </dict>

    After you copy those (you will have copied 42 lines), you have to paste all of 42 of those lines right above the
    </array>
    </dict>
    </plist>

    This is what the repo should look like after adding two packages.

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>info</key>
    <dict>
    <key>name</key>
    <string></string>
    <key>description</key>
    <string></string>
    <key>maintainer</key>
    <string></string>
    <key>contact</key>
    <string></string>
    <key>url</key>
    <string></string>
    <key>category</key>
    <string></string>
    </dict>
    <key>packages</key>
    <array>
    <dict>
    <key>bundleIdentifier</key>
    <string></string>
    <key>name</key>
    <string></string>
    <key>version</key>
    <string>1.0</string>
    <key>location</key>
    <string></string>
    <key>category</key>
    <string></string>
    <key>size</key>
    <string></string>
    <key>hash</key>
    <string></string>
    <key>url</key>
    <string></string>
    <key>description</key>
    <string></string>
    <key>date</key>
    <string></string>
    <key>scripts</key>
    <dict>
    <key>install</key>
    <array>
    <array>
    <string>CopyPath</string>
    <string></string>
    <string></string>
    </array>
    </array>
    <key>uninstall</key>
    <array>
    <array>
    <string>RemovePath</string>
    <string></string>
    </array>
    </array>
    </dict>
    </dict>
    <dict>
    <key>bundleIdentifier</key>
    <string></string>
    <key>name</key>
    <string></string>
    <key>version</key>
    <string>1.0</string>
    <key>location</key>
    <string></string>
    <key>category</key>
    <string></string>
    <key>size</key>
    <string></string>
    <key>hash</key>
    <string></string>
    <key>url</key>
    <string></string>
    <key>description</key>
    <string></string>
    <key>date</key>
    <string></string>
    <key>scripts</key>
    <dict>
    <key>install</key>
    <array>
    <array>
    <string>CopyPath</string>
    <string></string>
    <string></string>
    </array>
    </array>
    <key>uninstall</key>
    <array>
    <array>
    <string>RemovePath</string>
    <string></string>
    </array>
    </array>
    </dict>
    </dict>
    </array>
    </dict>
    </plist>


    CONNECTING TO YOUR REPO:

    All you do to connect to your repo is upload repo.xml to your googlepages account and then when its done, go to installer and type in the name of the googlepages account like this: http://ipodtouchpros.googlepages.com/repo.xml

    If you see your package and it says "main execution failed" then that means you didn't zip the package correctly. However, if it says "package download failed" that means you didn't copy the size correctly or the hash isn't right.

    You may check your repository next to mine if you would like to use an example. Mine is http://ipodtouchpros.googlepages.com/repo.xml


    I hope this helps you!!
     
  2. cbrain macrumors 65816

    cbrain

    Joined:
    Dec 9, 2006
    Location:
    North-East, UK
  3. ipodtouchpros thread starter macrumors member

    ipodtouchpros

    Joined:
    Feb 23, 2008
    Location:
    AZ
  4. sulayman macrumors newbie

    Joined:
    Mar 31, 2008
    #4
    What program to create the zip package?

    Hi there.. i followed your great tutorial. Thanks for that.

    I am getting a "Main Execution Script failed" message whenever I am trying to install the source. I thought maybe it is the software I am using to create the zip file. I use winrar to create the package. Is there anything in particular that I should be using?

    Thanks
     
  5. ipodtouchpros thread starter macrumors member

    ipodtouchpros

    Joined:
    Feb 23, 2008
    Location:
    AZ
    #5
    Hmmm, so are you just adding a source? If you are and it's not working for you, you can just download this zip from me and then upload it to your account. The zip is http://ipodtouchpros.googlepages.com/addsource.zip . This is an example of my repository adding a repo you can add it just like this

    <dict>
    <key>bundleIdentifier</key>
    <string>com.iPodTouchPros.modmyifone</string>
    <key>name</key>
    <string>Mod My iFone</string>
    <key>version</key>
    <string>1.0</string>
    <key>location</key>
    <string>http://ipodtouchpros.googlepages.com/addsource.zip</string>
    <key>category</key>
    <string>iTouch Pros Sources</string>
    <key>size</key>
    <string>155</string>
    <key>hash</key>
    <string>96bca583f6c1450fe22ae74b4956544a</string>
    <key>url</key>
    <string>http://freewebs.com/ipodtouchpros</string>
    <key>description</key>
    <string>Modmyifone Official Source for Installer!</string>
    <key>date</key>
    <string>1202723280</string>
    <key>scripts</key>
    <dict>
    <key>install</key>
    <array>
    <array>
    <string>AddSource</string>
    <string>http://modmyifone.com/installer.xml</string>
    </array>
    </array>
    <key>uninstall</key>
    <array>
    <array>
    <string>RemoveSource</string>
    <string>http://modmyifone.com/installer.xml</string>
    </array>
    </array>
    </dict>
    </dict>



    I'm not sure what your problem is without knowing what the repo is and all of that sort of stuff but all you should need is that zip and then the location of the source, the hash, and the size. If you have anymore questions, just post it here or email me at ipodtouchpros@gmail.com

    I really hope this helps!
     
  6. ipodtouchpros thread starter macrumors member

    ipodtouchpros

    Joined:
    Feb 23, 2008
    Location:
    AZ
    #6
    Wait, I'm sorry I may not have completely understood your problem. What did you mean when you said "I tried to install the source" if you mean that you tried to add a source use my post right above this.

    Please give feedback or ask questions.
     
  7. ipodtouchpros thread starter macrumors member

    ipodtouchpros

    Joined:
    Feb 23, 2008
    Location:
    AZ
    #7
    Het guys, will you please give me some feedback? Tell me if you liked it or didn't like it. Please feel free to ask questions. If you have any questions, please just ask.
     
  8. ipodtouchpros thread starter macrumors member

    ipodtouchpros

    Joined:
    Feb 23, 2008
    Location:
    AZ
  9. cbrain macrumors 65816

    cbrain

    Joined:
    Dec 9, 2006
    Location:
    North-East, UK
    #9
    Don't post your email address, you'll likely get spam. Change "@" to "AT" and .com to "DOT COM", and then tell people what to change it to.
     
  10. ipodtouchpros thread starter macrumors member

    ipodtouchpros

    Joined:
    Feb 23, 2008
    Location:
    AZ
  11. alucarde2 macrumors newbie

    Joined:
    Feb 13, 2009
    #11
  12. cbrain macrumors 65816

    cbrain

    Joined:
    Dec 9, 2006
    Location:
    North-East, UK

Share This Page