summaryrefslogtreecommitdiff
path: root/make-sgpkg.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2010-02-19 18:37:05 +0100
committerGuido Günther <agx@sigxcpu.org>2010-02-19 18:37:05 +0100
commitab68fb861407d474e92b7d908333c9469109aa34 (patch)
treef114e09a92f3a02399fa5a2dda722ca97eaeb81a /make-sgpkg.py
parent7f9cbe0b291b8b0c48592de12fb9da252f5ebb09 (diff)
Add desktop file
Diffstat (limited to 'make-sgpkg.py')
-rw-r--r--make-sgpkg.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/make-sgpkg.py b/make-sgpkg.py
index b4620a1..f93f1ec 100644
--- a/make-sgpkg.py
+++ b/make-sgpkg.py
@@ -156,6 +156,21 @@ usr/lib/sapgui/SAPGUI%(version)s/inst/hicolor/16x16/apps/SAPClients.png /usr/sha
write_file(debiandir, "links", contents)
+def gen_desktop(destdir):
+ applications = 'usr/share/applications/'
+ contents = """[Desktop Entry]
+Version=1.0
+Type=Application
+Name=SAP GUI Logon
+Exec=sapguilogon
+Icon=guilogon
+"""
+ os.makedirs(os.path.join(destdir, applications))
+ write_file(destdir,
+ os.path.join(applications, "sapguilogon.desktop"),
+ contents)
+
+
def build_sapgui_deb(tmpdir):
curdir = os.path.abspath(os.path.curdir)
build_cmd = ["fakeroot", "dpkg-buildpackage", "-b" ,"-uc", "-us"]
@@ -223,6 +238,7 @@ def main(argv):
gen_install(debiandir)
gen_copyright(debiandir)
gen_links(debiandir, sg_version)
+ gen_desktop(destdir)
print "Building Debain package at '%s'" % pkgdir
build_sapgui_deb(pkgdir)