fixed problems with linux deploy

This commit is contained in:
jeena 2013-04-17 11:52:27 +02:00
parent 6db4ee634b
commit c5d7c7d0a0
5 changed files with 15 additions and 5 deletions

View file

@ -35,4 +35,5 @@ clean:
$(PYTHON) setup.py clean
$(MAKE) -f $(CURDIR)/debian/rules clean
rm -rf build/ MANIFEST
find . -name '*.pyc' -delete
find . -name '*.pyc' -delete

View file

@ -15,3 +15,4 @@ install/bungloo::
clean::
rm -rf build build-stamp configure-stamp build/ MANIFEST
dh_clean

View file

@ -4,7 +4,7 @@ VERSION="1.4.0"
DEPLOYPATH="bungloo-${VERSION}"
QTPATH="../Qt"
SHAREDPATH=".."
DISTPATH=dist
DISTPATH="dist"
rm -rf $DEPLOYPATH
rm -rf $DISTPATH
@ -41,6 +41,7 @@ rm bungloo_${VERSION}.dsc
rm bungloo_${VERSION}.orig.tar.gz
rm -rf $DEPLOYPATH
rm $DISTPATH/bungloo-${VERSION}-1.src.rpm
mv $DISTPATH/bungloo-${VERSION}-1.noarch.rpm $DISTPATH/bungloo-${VERSION}.noarch.rpm
echo "Done."

View file

@ -21,5 +21,9 @@ setup(
license = "BSD license",
packages = ['bungloo'],
package_data = {"bungloo": files},
scripts = ["bin/bungloo"]
)
scripts = ["bin/bungloo"],
data_files=[
('/usr/share/applications', ["bungloo.desktop"]),
('/usr/share/pixmaps', ["bungloo/images/bungloo.xpm"])
]
)

View file

@ -12,7 +12,10 @@ import array
class Helper:
@classmethod
def get_resource_path(cls):
return os.path.dirname(sys.argv[0])
if os.name == "nt":
return os.path.dirname(sys.argv[0])
else:
return os.path.dirname(__file__)
class WebPage(QtWebKit.QWebPage):
def __init__(self, parent=0, app=None):