mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-22 09:21:33 +00:00
Fix data_files in setup.py
This commit is contained in:
parent
7b7e61485e
commit
2c5025644c
6
setup.py
6
setup.py
@ -34,6 +34,10 @@ except ImportError:
|
||||
def windows_check():
|
||||
return platform.system() in ('Windows', 'Microsoft')
|
||||
|
||||
|
||||
def osx_check():
|
||||
return platform.system() == "Darwin"
|
||||
|
||||
desktop_data = 'deluge/ui/data/share/applications/deluge.desktop'
|
||||
|
||||
|
||||
@ -268,7 +272,7 @@ cmdclass = {
|
||||
|
||||
# Data files to be installed to the system.
|
||||
_data_files = []
|
||||
if not windows_check() or not osx_check():
|
||||
if not windows_check() and not osx_check():
|
||||
_data_files = [
|
||||
('share/icons/hicolor/scalable/apps', ['deluge/ui/data/icons/scalable/apps/deluge.svg']),
|
||||
('share/icons/hicolor/128x128/apps', ['deluge/ui/data/icons/hicolor/128x128/apps/deluge.png']),
|
||||
|
Loading…
x
Reference in New Issue
Block a user