Can someone help me with my source? Main Script execution failed error

Discussion in 'iPod touch' started by Glisern, Dec 31, 2007.

  1. Glisern

    Glisern New Member

    Joined:
    Oct 17, 2007
    Messages:
    38
    Likes Received:
    0
    Device:
    2G iPod touch
    So, as the very long title says, i am having a trouble with my own source. It's added to the installer app without problem, and it lists packages within.

    But when someone tries to download something from the source on installer, they get a Main script execution failed!

    Can someone help me solve this problem?

    Below is the source code:
    Code:
    <!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>Offisiell Datamote</string>
          <key>description</key>
          <string>Den offisielle kilden fra Datamote</string>
          <key>maintainer</key>
          <string>Roy</string>
          <key>contact</key>
          <string>glisern@gmail.com</string>
          <key>url</key>
          <string>http://www.datamote.no</string>
          <key>category</key>
          <string>datamote.no</string>
        </dict>
        <key>packages</key>
        <array>
          <dict>
            <key>bundleIdentifier</key>
            <string>com.natetrue.iphone.nesapp</string>
            <key>name</key>
            <string>NES</string>
            <key>version</key>
            <string>2.0.1</string>
            <key>location</key>
            <string>http://datamote.no/source/NES.app.zip</string>
            <key>category</key>
            <string>Datamote</string>
            <key>size</key>
            <string>381161</string>
            <key>hash</key>
            <string>133fd00eb2cd9ac85dd9bab63cb8f2d7</string>
            <key>url</key>
            <string>http://www.datamote.no/source/</string>
            <key>description</key>
            <string>En NES Emulator til iPod Touch</string>
            <key>date</key>
            <string>1196614800</string>
            <key>scripts</key>
            <dict>
              <key>install</key>
              <array>
                <array>
                  <string>CopyPath</string>
                  <string>NES/</string>
                  <string>/private/var/root/Media_sym/Applications/NES</string>
                </array>
              </array>
              <key>uninstall</key>
              <array>
                <array>
                  <string>RemovePath</string>
                  <string>/private/var/root/Media_sym/Applications/NES</string>
                </array>
              </array>
            </dict>
          </dict>
        </array>
      </dict>
    </plist>
  2. bddckr

    bddckr Active Member

    Joined:
    Dec 2, 2007
    Messages:
    1,434
    Likes Received:
    18
    Device:
    iPhone 4 (Black)
    Very easy

    Please Register or Log in to view images



    In ur zip is a folder named "NES.app" so this:

    is wrong. Why? Installer will search for a folder "NES" in ur zip.

    Here is the right CopyPath-Part:


    Btw: I don't think u can use "/private/var/root/Media_sym/Applications/" as the default path to the apps.
    Isn't it "/Applications/" ??
  3. shotgunfool

    shotgunfool Active Member

    Joined:
    Oct 7, 2007
    Messages:
    1,233
    Likes Received:
    5
    Device:
    iPod touch
    yes the install path is /Applications make sure you also capitalise all of the folders so go through as if you were manually installing the app and just copy the names of the folders to get the correct capitalisation

    Edit:
    i also found this

    You need to get rid of the / after NES and change the installation path to so i needs to be

    <string>CopyPath</string>
    <string>NES</string>
    <string>/private/var/root/Media_sym/Applications/NES</string>
    </array>


    <string>CopyPath</string>
    <string>NES</string>
    <string>/Applications/NES</string>
    </array>
  4. bddckr

    bddckr Active Member

    Joined:
    Dec 2, 2007
    Messages:
    1,434
    Likes Received:
    18
    Device:
    iPhone 4 (Black)
    isn't it NES.app? In his .zip there is the folder named "NES.app"...
  5. shotgunfool

    shotgunfool Active Member

    Joined:
    Oct 7, 2007
    Messages:
    1,233
    Likes Received:
    5
    Device:
    iPod touch
    no because he is installing it to the NES folder in the uninstall bit he needs NES.app
  6. bddckr

    bddckr Active Member

    Joined:
    Dec 2, 2007
    Messages:
    1,434
    Likes Received:
    18
    Device:
    iPhone 4 (Black)
    okay

    Please Register or Log in to view images

    (ten chars)

Share This Page