mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
build_deb.sh successfully builds a debian package, including the .desktop launcher
This commit is contained in:
parent
ecaf2a97a3
commit
afb7e8007a
@ -5,4 +5,3 @@ include onionshare/*.html
|
||||
include onionshare/strings.json
|
||||
include onionshare_gui/templates/*
|
||||
include onionshare_gui/static/*
|
||||
include setup/*
|
||||
|
8
setup.py
8
setup.py
@ -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'])]
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user