2006-02-15 02:53:01 +00:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
ensureDir $out/bin
|
|
|
|
|
|
|
|
wrapper="$out/bin/$launcher"
|
|
|
|
|
2008-09-04 10:29:09 +01: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
|
2008-11-24 09:59:38 +00:00
|
|
|
exec $runner $appfile "\$@"
|
2008-09-04 10:29:09 +01:00
|
|
|
EOF
|
2006-02-15 02:53:01 +00:00
|
|
|
|
|
|
|
chmod +x $wrapper
|