Reply
Thread Tools
Posts: 67 | Thanked: 126 times | Joined on Jun 2010 @ Germany
#1
Hi everyone,

I was trying to be user-friendly in my port of VCMI. Therefore I created the script below as debian/preinst. It works fine from the HAM, but fails from apt-get.

Code:
#!/bin/sh

# This script was copied from kernel-power and somewhat modified. Thanks!

test "$1" = install || exit 0 # upgrades are fine
f=/tmp/vcmi-message
cat > $f <<EOF
This package installs the VCMI game engine and some required binaries. However you will still need the original game binaries of Heroes Of Might And Magic III (3). You will not be able to run VCMI without these binaries!

If you are not sure how to install these binaries, please have a look at http://talk.maemo.org/showpost.php?p=795124&postcount=182

You can also visit the official VCMI website for further instructions: http://vcmi.eu

If you want to cancel the installation now, tap the blurred area above this dialog.
EOF

maemo-confirm-text "Important Notice - VCMI" $f
res=$?
rm -f $f
exit $res
Is there a way to make maemo-confirm-text fall-back to the console (readline?) if the installation was started from apt-get (or dpkg)? Or any way to check that in the script?

Thanks,
Dan
__________________
  • If you have issues with the Maemo port of VCMI (Heroes 3), please report here.
  • If you have crashes, make sure to get an error log by running vcmi through xterm. (Type "vcmiclient" in the X Terminal application)
  • Some installation instructions can be found here.
  • For questions regarding VCMI features, a timeline, new releases and the like, please visit the VCMI board and their Wiki.

Last edited by 0x47; 2011-03-07 at 16:23.
 
Posts: 67 | Thanked: 126 times | Joined on Jun 2010 @ Germany
#2
Just pushing this in hope there may be someone with an idea meanwhile...
__________________
  • If you have issues with the Maemo port of VCMI (Heroes 3), please report here.
  • If you have crashes, make sure to get an error log by running vcmi through xterm. (Type "vcmiclient" in the X Terminal application)
  • Some installation instructions can be found here.
  • For questions regarding VCMI features, a timeline, new releases and the like, please visit the VCMI board and their Wiki.
 
chemist's Avatar
Administrator | Posts: 1,036 | Thanked: 2,019 times | Joined on Sep 2009 @ Germany
#3
We had the issue discussed on IRC freenode #maemo - just jump in and ask, I don't remember any solutions mentioned but someone might have a clue! I move this to devel then...
 
Reply


 
Forum Jump


All times are GMT. The time now is 10:05.