fixed problems with linux deploy
This commit is contained in:
parent
6db4ee634b
commit
c5d7c7d0a0
5 changed files with 15 additions and 5 deletions
|
@ -36,3 +36,4 @@ clean:
|
|||
$(MAKE) -f $(CURDIR)/debian/rules clean
|
||||
rm -rf build/ MANIFEST
|
||||
find . -name '*.pyc' -delete
|
||||
|
||||
|
|
|
@ -15,3 +15,4 @@ install/bungloo::
|
|||
clean::
|
||||
rm -rf build build-stamp configure-stamp build/ MANIFEST
|
||||
dh_clean
|
||||
|
||||
|
|
|
@ -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."
|
||||
|
||||
|
|
|
@ -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"])
|
||||
]
|
||||
)
|
||||
|
|
|
@ -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):
|
||||
|
|
Reference in a new issue