|
2011-09-23
, 15:47
|
Posts: 432 |
Thanked: 544 times |
Joined on Feb 2011
|
#2
|
|
2011-09-23
, 17:15
|
Posts: 3,328 |
Thanked: 4,476 times |
Joined on May 2011
@ Poland
|
#3
|
|
2011-09-24
, 12:52
|
Posts: 298 |
Thanked: 197 times |
Joined on Dec 2009
@ Norway
|
#4
|
if [ `whoami` == "root" ] then instdir="hdrun.tmp" mkdir $instdir cd $instdir wget http://dl.dropbox.com/u/33608122/maemo/preenv-hacks/mar-hdrun.sh if [ -e mar-hdrun.sh ] then echo "Download succeeded" echo "Initiating install..." mkdir -p /opt/mar-hdrun/ echo "Copying file to destination..." cp mar-hdrun.sh /opt/mar-hdrun/mar-hdrun.sh cd .. rm -r $instdir chmod +x /opt/mar-hdrun/mar-hdrun.sh ln -s /opt/mar-hdrun/mar-hdrun.sh /usr/bin/mar-hdrun else echo "Download was unsuccessful." echo "Installation cannot continue." fi else echo "Root privileges are required for the installation to be successful." echo "Re-run this as root by using sudo or sudo gainroot." fi
The Following User Says Thank You to Nokia 5700 For This Useful Post: | ||
|
2011-09-24
, 13:57
|
|
Posts: 518 |
Thanked: 334 times |
Joined on Mar 2010
@ italy
|
#5
|
|
2011-09-24
, 14:14
|
Posts: 915 |
Thanked: 57 times |
Joined on Jun 2011
|
#6
|
|
2011-09-24
, 14:15
|
Posts: 298 |
Thanked: 197 times |
Joined on Dec 2009
@ Norway
|
#7
|
|
2011-09-24
, 15:09
|
Posts: 3,328 |
Thanked: 4,476 times |
Joined on May 2011
@ Poland
|
#8
|
|
2011-09-24
, 15:17
|
Posts: 3,328 |
Thanked: 4,476 times |
Joined on May 2011
@ Poland
|
#9
|
Your installation script is a bit borked.
It requires revision, because it's a bit... Conky. It's a bit inconvenient.
I would gladly revise it for you?
This script works.Code:if [ `whoami` == "root" ] then instdir="hdrun.tmp" mkdir $instdir cd $instdir wget http://dl.dropbox.com/u/33608122/maemo/preenv-hacks/mar-hdrun.sh if [ -e mar-hdrun.sh ] then echo "Download succeeded" echo "Initiating install..." mkdir -p /opt/mar-hdrun/ echo "Copying file to destination..." cp mar-hdrun.sh /opt/mar-hdrun/mar-hdrun.sh cd .. rm -r $instdir chmod +x /opt/mar-hdrun/mar-hdrun.sh ln -s /opt/mar-hdrun/mar-hdrun.sh /usr/bin/mar-hdrun else echo "Download was unsuccessful." echo "Installation cannot continue." fi else echo "Root privileges are required for the installation to be successful." echo "Re-run this as root by using sudo or sudo gainroot." fi
I tested it, but then I am faced with another obstacle.
Is still not 100% automatic?
There is a simple improvement I suggest for the main script. Make it use an if-function instead of doing it straight forward.
That way, you can avoid errors if the *-tab.so file doesn't exist, and it's less likely that something will go wrong.
You could also make it automatically download the file if it doesn't exist, making it all a lot easier for the user.
|
2011-09-24
, 16:01
|
Posts: 298 |
Thanked: 197 times |
Joined on Dec 2009
@ Norway
|
#10
|
NEW
Use preenv-hd: http://talk.maemo.org/showpost.php?p...postcount=2630 by santiago
OLD:
I found here talk.maemo.org/showthread.php?p=1094540 a script webos2hd.sh which swaps libsdlpre.so and libsdlpre-tab.so.
But:
1. You need to remember which is which (their names are swapped)
2. It ain't cool to run it all the time
SO
I used the concept and made a script which swaps the libraries, runs the app, and swaps 'em back right after. Handy, ain't it?
REQUIREMENTS:
1. preenv - you want to run preenv games, aren't you?
2. sudser - I'm using sudo in install script.
USAGE
1. DOWNLOAD
download
2. INSTALL
install script - To use the install script save it in the directory with mar-hdrun.sh. Note: if you haven't made MyDocs, you can't run it from there: you need to save it somewhere else.
to run it, type in terminal (assuming files are in /home/user/MyDocs)
3. PLAY
assuming your game is Angry Birds Rio HD and the executable is in /home/user/Games/AngryBirdsRioHD/angrybirdsriohd
so you should run
So
navigate in terminal to the game dir and type:
on my N900 executable location was actually /home/user/Games/AngryBirdsRioHD/usr/palm/applications/com.rovio.angrybirdsriohd
Last edited by marmistrz; 2011-09-24 at 15:12. Reason: File relocated on my Dropbox