1. LayAA's Avatar
    Hey all, I need some help here, I'm not that good with writing commands as such for control files in .debian packages. I'm trying to make it compatible with ios9, it installs fine for an ios9 user but the mod doesn't work for them.
    Here's my postinstall and postrm

    #!/bin/sh
    echo "+------------------------------------------+"
    echo "|Heart Of Vegas Premium [2.1.3] Installer|"
    echo "+------------------------------------------+"
    #Checking for iOS 8 and using new Installation Method
    echo "Checking iOS Version..."

    container="8, 9"

    OSbuild=`sw_vers -productVersion`

    dam=${OSbuild%%.*}

    for stuff in $container
    do
    if [ "$dam" -ge 8 ]; then
    echo "newer iOS detected, using new installation Path"
    apps=/var/mobile/Containers/Bundle/Application/*
    else
    apps=/var/mobile/Applications/*
    fi
    done;

    for appdir in $apps
    do
    if [ -d $appdir"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages/" ]; then
    path=$appdir

    echo "Killing Process..."
    killall "HeartOfVegas"

    cd $path"/Library/Application Support/com.productmadness.hovmobile/LocalStore/hovmobile/packages/"

    mv "/packages/morechilli.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/moonfestival.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/misskitty.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/luckycount.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/bigred.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/dolphintreasure.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/50dragons.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/50lions.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/dragonvault.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/morehearts.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/sunandmoon.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/phoenixfantasy.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/tikitorch.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/wildsplash.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/wheresthegold.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/pelicanpete.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/flameofolympus.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/fortunefirecracker.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/doublehappiness.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/heavenandearth.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/partyinrio.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/queenofthenile.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/gamelist/HoVGames.sol" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/#SharedObjects/HoVMobile.swf"

    fi
    done;
    echo "Check the forums for updates on the mod & new releases! gamemodderz.com"

    #!/bin/sh
    echo "+------------------------------------------+"
    echo "|Heart Of Vegas Premium [2.1.3] Installer|"
    echo "+------------------------------------------+"
    #Checking for iOS 8 and using new Installation Method
    echo "Checking iOS Version..."

    container="8, 9"

    OSbuild=`sw_vers -productVersion`

    dam=${OSbuild%%.*}

    for stuff in $container
    do
    if [ "$stuff" == "$dam" ]; then
    echo "iOS 8 detected, using new installation Path"
    apps=/var/mobile/Containers/Bundle/Application/*
    else
    apps=/var/mobile/Applications/*
    fi
    done;

    for appdir in $apps
    do
    if [ -d $appdir"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages/" ]; then
    path=$appdir

    echo "Killing Process..."
    killall "hovmobile"

    echo "App Pfad: "$appdir

    mv "/packages/morechilli.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/moonfestival.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/misskitty.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/luckycount.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/bigred.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/dolphintreasure.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/50dragons.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/50lions.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/dragonvault.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/morehearts.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/sunandmoon.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/phoenixfantasy.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/tikitorch.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/wildsplash.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/wheresthegold.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/pelicanpete.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/flameofolympus.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/fortunefirecracker.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/doublehappiness.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/heavenandearth.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/partyinrio.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/packages/queenofthenile.zip" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/hovmobile/packages"
    mv "/gamelist/HoVGames.sol" $path"/Library/Application Support/com.productmadness.hovmobile/Local Store/#SharedObjects/HoVMobile.swf"
    chown mobile:mobile $path"/Library/Application Support/com.productmadness.hovmobile" -hR
    chmod 644 $path"Library/Application Support/com.productmadness.hovmobile" -R

    uicache


    fi
    done;
    echo ""
    echo "visit the forums for more news mods and hacks !!!"
    10-28-2015 10:44 PM

Similar Threads

  1. how do i uninstall a app off my iphone
    By iMore Question in forum Ask a Question
    Replies: 1
    Last Post: 10-28-2015, 09:38 PM
  2. Replies: 0
    Last Post: 10-28-2015, 09:35 PM
  3. how can i remove and app from my iphone
    By iMore Question in forum Ask a Question
    Replies: 1
    Last Post: 10-28-2015, 09:34 PM
  4. How to use picture-in-picture video multitasking on your iPad
    By iMore.com in forum iMore.com News Discussion
    Replies: 0
    Last Post: 10-28-2015, 09:12 PM
  5. How do I stop websites I visit from my getting my email address?
    By iMore Question in forum Ask a Question
    Replies: 1
    Last Post: 10-28-2015, 08:31 PM
LINK TO POST COPIED TO CLIPBOARD