2006-02-15 03:53:01 +01:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
ensureDir $out/bin
|
|
|
|
|
|
|
|
wrapper="$out/bin/$launcher"
|
|
|
|
|
2008-09-04 11:29:09 +02:00
|
|
|
if test -e $xulrunner/bin/xulrunner; then
|
|
|
|
runner=$xulrunner/bin/xulrunner
|
|
|
|
elif test -e $xulrunner/bin/firefox; then
|
|
|
|
runner="$xulrunner/bin/firefox -app"
|
|
|
|
else
|
|
|
|
echo "XUL runner not found"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
cat > $wrapper <<EOF
|
|
|
|
#! $SHELL -e
|
|
|
|
$runner $appfile "\$@"
|
|
|
|
EOF
|
2006-02-15 03:53:01 +01:00
|
|
|
|
|
|
|
chmod +x $wrapper
|