mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-03 23:15:18 -04:00
starting to create .desktop launcher (#32)
This commit is contained in:
parent
5f3789eb5e
commit
f51cca2c17
4 changed files with 278 additions and 2 deletions
13
setup.py
13
setup.py
|
@ -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()
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue