help with XML repo setup

Discussion in 'iPod touch' started by evanmrules, May 12, 2008.

  1. evanmrules

    evanmrules New Member

    Joined:
    Jan 5, 2008
    Messages:
    238
    Likes Received:
    2
    Device:
    iPod touch
    HELP with XML repo setup -almost got it- im getting main execution failed

    ok so im seting up my repo, but everytime i install something in installer from my repo(which is an app) it wont show up on my springboard..

    UPDATE: now my problem is that i get main script execution faild. help plzz

    heres my code

    Code:
    <?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>category</key>
          <string>Evans repo</string>
          <key>contact</key>
          <string>uhhhevan@aim.com</string>
          <key>dscription</key>
          <string>Evans Repo</string>
          <key>maintainer</key>
          <string>Evan</string>
          <key>name</key>
          <string>Evans Repo</string>
          <key>url</key>
          <string>http://uhhhevan.googlepages.com/</string>
        </dict>
        <key>packages</key>
        <array>
          <dict>
            <key>author</key>
            <string>Package maker</string>
            <key>bundleIdentifier</key>
            <string>com.blank.blank</string>
            <key>category</key>
            <string>Evans Repo</string>
            <key>description</key>
            <string>Insane os -> hosting it for people</string>
            <key>location</key>
            <string>http://uhhhevan.googlepages.com/InsaneOS.zip</string>
            <key>name</key>
            <string>Insane OS 2.0</string>
            <key>size</key>
            <string>1314403</string>
             <key>hash</key>
             <string>5120a491e81f2eef56ec3aa3f88fce0a</string>
            <key>url</key>
            <string>http://uhhhevan.googlepages.com/InsaneOS.zip</string>
            <key>version</key>
            <string>2.0</string>
            <key>date</key>
            <string>1206230400</string>
            <key>scripts</key>
            <dict>
              <key>install</key>
              <array>
                <array>
                  <string>CopyPath</string>
                  <string>Insane OS.app/</string>
                  <string>/Applications/Insane OS.app</string>
                </array>
                <array>
                 <string>Exec</string>
                  <string>chmod -R 755 /Applications/Insane OS.app</string>
                </array>
              </array>
              <key>uninstall</key>
              <array>
                <array>
                  <string>RemovePath</string>
                  <string>/var/Applications/Insane OS.app</string>
                </array>
              </array>
            </dict>
          </dict>
      </array>
      </dict>
    </plist>

    i wanted to do this so i could host the insane OS bcaus the people who made it. panda, he couldn get it on here repo cause hes not good with that, i offerd to help..

    help will be greatly appreciated

    +rep to person who helps
  2. Axis

    Axis Super Moderator Staff Member

    Joined:
    Dec 2, 2007
    Messages:
    6,288
    Likes Received:
    133
    Device:
    iPhone 4S (White)
    First of all, the CopyPath is in absolute disarray.

    It should be

    Code:
    <string>NameOfApp.app/</string>
    <string>/Applications/NameOfApp.app</string>
    
    
    Use the example to fix the RemovePath as well.
  3. evanmrules

    evanmrules New Member

    Joined:
    Jan 5, 2008
    Messages:
    238
    Likes Received:
    2
    Device:
    iPod touch
    thanks..

    im new to using xml, all tho i notice how that really dosent matter but thank you
  4. ipodtouchmaster05

    ipodtouchmaster05 Well-Known Member

    Joined:
    Sep 30, 2007
    Messages:
    1,787
    Likes Received:
    41
    Device:
    iPhone 5 (Black)
    thirdly you need to change permissions if it is an application, ex:
    <array>
    <string>Exec</string>
    <string>chmod -R 755 /Applications/APPNAME.app</string>
    </array>

    Also you have no hash which you need:
    <key>hash</key>
    <string>HASH</string>
  5. Axis

    Axis Super Moderator Staff Member

    Joined:
    Dec 2, 2007
    Messages:
    6,288
    Likes Received:
    133
    Device:
    iPhone 4S (White)
    I forgot to mention that. It's crucial for the permissions to be set correctly, or the app will not open.
  6. evanmrules

    evanmrules New Member

    Joined:
    Jan 5, 2008
    Messages:
    238
    Likes Received:
    2
    Device:
    iPod touch
    ok thanks but yeah im very new at XML..Very!

    do i just add that line to anyplace towards the bottom or does it matter..

    sorry im just bad with this
  7. evanmrules

    evanmrules New Member

    Joined:
    Jan 5, 2008
    Messages:
    238
    Likes Received:
    2
    Device:
    iPod touch
    hash?

    never heard of that
  8. ipodtouchmaster05

    ipodtouchmaster05 Well-Known Member

    Joined:
    Sep 30, 2007
    Messages:
    1,787
    Likes Received:
    41
    Device:
    iPhone 5 (Black)
    Code:
    <key>packages</key>
        <array>
          <dict>
            <key>author</key>
            <string>Package maker</string>
            <key>bundleIdentifier</key>
            <string>com.blank.blank</string>
            <key>category</key>
            <string>Evans Repo</string>
            <key>description</key>
            <string>Insane os -> hosting it for people</string>
            <key>location</key>
            <string>http://uhhhevan.googlepages.com/InsaneOS.zip</string>
            <key>name</key>
            <string>Insane OS 2.0</string>
            <key>size</key>
            <string>1314403</string>
             <key>hash</key>
             <string>HASH INFO</string>
            <key>url</key>
            <string>http://uhhhevan.googlepages.com/InsaneOS.zip</string>
            <key>version</key>
            <string>2.0</string>
            <key>date</key>
            <string>1206230400</string>
            <key>scripts</key>
            <dict>
              <key>install</key>
              <array>
                <array>
                  <string>CopyPath</string>
                  <string>APPNAME.app/</string>
                  <string>/Applications/APPNAME.app</string>
                </array>
                <array>
                 <string>Exec</string>
                  <string>chmod -R 755 /Applications/APPNAME.app</string>
                </array>
              </array>
              <key>uninstall</key>
              <array>
                <array>
                  <string>RemovePath</string>
                  <string>/var/Applications/Insane OS.app</string>
                </array>
              </array>
            </dict>
          </dict>
      </array>
      </dict>
    </plist>
    
    Hash is what installer uses to check that it is downloading the sorrect package as defined in the script. so you need to download a program called MD5 (google it) and then find the hash of the .zip file and palce it where I said HASH INFO and if you are on windows make sure that any letters are changed to lower case.

    EDIT: also I don't recommend having spaces in the name of the app (I have always had trouble using installer to install those) so I recommend that you change the name of the Applications to something without spaces.
  9. evanmrules

    evanmrules New Member

    Joined:
    Jan 5, 2008
    Messages:
    238
    Likes Received:
    2
    Device:
    iPod touch
    thanks very much ipodtouchmaster..

    appreciate it..




    last Q.. sorry but i need to ask....

    what does hash mean and do?


    EDIT:

    thx alot


    random Q
    i saw it said michigan and i live in Michigan
    do you go to Romeo High School

    cause i go there, im a sophomore, just curious.
  10. ipodtouchmaster05

    ipodtouchmaster05 Well-Known Member

    Joined:
    Sep 30, 2007
    Messages:
    1,787
    Likes Received:
    41
    Device:
    iPhone 5 (Black)
    No problem man, I live in Ann Arbor and never heard of that school lol

Share This Page