
November 14th, 2003, 06:30 PM
|
 |
Wacky hack
|
|
Join Date: Apr 2001
Location: London, England
Posts: 513
Time spent in forums: 1 h 38 m 37 sec
Reputation Power: 13
|
|
Or, if you want to just stick your app somewhere like /usr/share/yourapp, you can create a simple install shell script like so:
Code:
#!/bin/sh
# Install script for YourApp
echo Checking for dependencies...
PYTHON=`which python`
if [ $PYTHON ]; then
echo "python found at: $PYTHON"
else
echo "python not found!"
exit 1
fi
python -c "from qt import qVersion, PYQT_VERSION"
PYQT=$?
if [ $PYQT -eq 0 ]; then
echo "PyQt found."
#(sip found at: $PYQT)"
else
echo "PyQt not found!"
exit 1
fi
echo
echo Changing to root to install files
su -c "mkdir -p /usr/share/yourapp && cp *.py README LICENSE /usr/share/yourapp && chmod a+x /usr/share/yourapp/yourapp.py && ln -sf /usr/share/yourapp/yourapp.py /usr/bin/yourapp && cp yourapp.1.gz /usr/man/man1"
echo
echo Here you can put some post-install hints
echo to pass on any necessary instructions, like
echo the name of the binary to run
That's a cannabalised version of my install script for QuickRip.
|