starting to create .desktop launcher (#32)

This commit is contained in:
Micah Lee 2014-06-09 23:03:37 -04:00
parent 5f3789eb5e
commit f51cca2c17
4 changed files with 278 additions and 2 deletions

View file

@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os, sys, subprocess
import os, sys, subprocess, platform
try:
from setuptools import setup
@ -12,6 +12,14 @@ if sys.argv[-1] == 'publish':
subprocess.call(['python', 'setup.py', 'sdist', 'upload', '--sign'])
sys.exit()
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')]
else:
return None
setup(
name='onionshare',
version='0.2',
@ -28,5 +36,6 @@ setup(
license="GPL v3",
keywords='onion, share, onionshare, tor, anonymous, web server',
packages=['onionshare', 'onionshare_gui'],
scripts=['bin/onionshare', 'bin/onionshare-gui']
scripts=['bin/onionshare', 'bin/onionshare-gui'],
data_files=get_data_files()
)