updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / bin32-adobe-air / adobe-air
blobff3bdd4b200ffc09995be8079e21259c1a265038
1 #!/bin/bash
2 # Simple Adobe Air SDK wrapper script to use it as a simple AIR application launcher
3 # By Spider.007 / Sjon
5 if [[ -z "$1" ]]
6 then
7 echo "Please supply an .air application as first argument"
8 exit 1
9 fi
11 export GTK_PATH=/opt/lib32/usr/lib/gtk-2.0
12 export PANGO_RC_FILE=/opt/lib32/config/pango/pangorc
13 export GDK_PIXBUF_MODULE_FILE=/opt/lib32/config/gdk/gdk-pixbuf.loaders
14 export GTK_IM_MODULE_FILE=/opt/lib32/config/gdk/gdk.immodules
15 export G_FILENAME_ENCODING=UTF-8
17 tmpdir=`mktemp -d /tmp/adobeair.XXXXXXXXXX`
19 echo "adobe-air: Extracting application to directory: $tmpdir"
20 mkdir -p $tmpdir
21 unzip -q $1 -d $tmpdir || exit 1
23 echo "adobe-air: Attempting to start application"
24 /opt/adobe-air-sdk/bin/adl -nodebug $tmpdir/META-INF/AIR/application.xml $tmpdir
26 echo "adobe-air: Cleaning up temporary directory"
27 rm -Rf $tmpdir && echo "adobe-air: Done"