build_deb.sh successfully builds a debian package, including the .desktop launcher

This commit is contained in:
Micah Lee 2014-06-09 21:33:16 -07:00
parent ecaf2a97a3
commit afb7e8007a
2 changed files with 4 additions and 5 deletions

View File

@ -5,4 +5,3 @@ include onionshare/*.html
include onionshare/strings.json
include onionshare_gui/templates/*
include onionshare_gui/static/*
include setup/*

View File

@ -16,9 +16,8 @@ version = open('version').read().strip()
def get_data_files():
if platform.system == 'Linux':
print 'linux oh yeah'
return [('/usr/share/applications', 'setup/onionshare.desktop'),
('/usr/share/pixmaps', 'setup/onionshare80.xpm')]
return [('/usr/share/applications', ['setup/onionshare.desktop']),
('/usr/share/pixmaps', ['setup/onionshare80.xpm'])]
else:
return None
@ -39,5 +38,6 @@ setup(
keywords='onion, share, onionshare, tor, anonymous, web server',
packages=['onionshare', 'onionshare_gui'],
scripts=['bin/onionshare', 'bin/onionshare-gui'],
data_files=get_data_files()
data_files=[('/usr/share/applications', ['setup/onionshare.desktop']),
('/usr/share/pixmaps', ['setup/onionshare80.xpm'])]
)