mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-13 13:05:37 +00:00
Fix .desktop file creation on Windows by just ignoring it
This commit is contained in:
parent
bdd9bd11b5
commit
4234583fc7
23
setup.py
23
setup.py
@ -254,14 +254,15 @@ class build_trans(cmd.Command):
|
|||||||
def run(self):
|
def run(self):
|
||||||
po_dir = os.path.join(os.path.dirname(__file__), 'deluge/i18n/')
|
po_dir = os.path.join(os.path.dirname(__file__), 'deluge/i18n/')
|
||||||
|
|
||||||
# creates the translated desktop file
|
if not windows_check():
|
||||||
INTLTOOL_MERGE='intltool-merge'
|
# creates the translated desktop file
|
||||||
INTLTOOL_MERGE_OPTS='--utf8 --quiet --desktop-style'
|
INTLTOOL_MERGE='intltool-merge'
|
||||||
desktop_in='deluge/data/share/applications/deluge.desktop.in'
|
INTLTOOL_MERGE_OPTS='--utf8 --quiet --desktop-style'
|
||||||
desktop_data='deluge/data/share/applications/deluge.desktop'
|
desktop_in='deluge/data/share/applications/deluge.desktop.in'
|
||||||
print('Creating desktop file: %s' % desktop_data)
|
desktop_data='deluge/data/share/applications/deluge.desktop'
|
||||||
os.system('C_ALL=C ' + '%s '*5 % (INTLTOOL_MERGE, INTLTOOL_MERGE_OPTS, \
|
print('Creating desktop file: %s' % desktop_data)
|
||||||
po_dir, desktop_in, desktop_data))
|
os.system('C_ALL=C ' + '%s '*5 % (INTLTOOL_MERGE, INTLTOOL_MERGE_OPTS, \
|
||||||
|
po_dir, desktop_in, desktop_data))
|
||||||
|
|
||||||
print('Compiling po files from %s...' % po_dir),
|
print('Compiling po files from %s...' % po_dir),
|
||||||
for path, names, filenames in os.walk(po_dir):
|
for path, names, filenames in os.walk(po_dir):
|
||||||
@ -486,7 +487,6 @@ _data_files = [
|
|||||||
('share/icons/hicolor/64x64/apps', ['deluge/data/icons/hicolor/64x64/apps/deluge.png']),
|
('share/icons/hicolor/64x64/apps', ['deluge/data/icons/hicolor/64x64/apps/deluge.png']),
|
||||||
('share/icons/hicolor/72x72/apps', ['deluge/data/icons/hicolor/72x72/apps/deluge.png']),
|
('share/icons/hicolor/72x72/apps', ['deluge/data/icons/hicolor/72x72/apps/deluge.png']),
|
||||||
('share/icons/hicolor/96x96/apps', ['deluge/data/icons/hicolor/96x96/apps/deluge.png']),
|
('share/icons/hicolor/96x96/apps', ['deluge/data/icons/hicolor/96x96/apps/deluge.png']),
|
||||||
('share/applications', ['deluge/data/share/applications/deluge.desktop']),
|
|
||||||
('share/pixmaps', ['deluge/data/pixmaps/deluge.png', 'deluge/data/pixmaps/deluge.xpm']),
|
('share/pixmaps', ['deluge/data/pixmaps/deluge.png', 'deluge/data/pixmaps/deluge.xpm']),
|
||||||
('share/man/man1', [
|
('share/man/man1', [
|
||||||
'docs/man/deluge.1',
|
'docs/man/deluge.1',
|
||||||
@ -496,6 +496,9 @@ _data_files = [
|
|||||||
'docs/man/deluge-console.1'])
|
'docs/man/deluge-console.1'])
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if not windows_check():
|
||||||
|
_data_files.append(('share/applications', ['deluge/data/share/applications/deluge.desktop']))
|
||||||
|
|
||||||
entry_points = {
|
entry_points = {
|
||||||
"console_scripts": [
|
"console_scripts": [
|
||||||
"deluge-console = deluge.ui.console:start",
|
"deluge-console = deluge.ui.console:start",
|
||||||
@ -511,7 +514,7 @@ entry_points = {
|
|||||||
|
|
||||||
if windows_check():
|
if windows_check():
|
||||||
entry_points["console_scripts"].append("deluge-debug = deluge.main:start_ui")
|
entry_points["console_scripts"].append("deluge-debug = deluge.main:start_ui")
|
||||||
|
|
||||||
# Main setup
|
# Main setup
|
||||||
setup(
|
setup(
|
||||||
name = "deluge",
|
name = "deluge",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user