Skip to content

Commit

Permalink
update installation paths
Browse files Browse the repository at this point in the history
  • Loading branch information
somas95 committed Nov 29, 2018
1 parent 3068f28 commit d589729
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,12 @@ def package_files(directory):

if os.path.isfile("/.flatpak-info"):
app_prefix = '/app/'
print("in flatpak")
else:
app_prefix = '/'
app_prefix = '/usr/'

setup(
name='uberwriter',
version='2.0 beta',
version='2.1.3',
license='GPL-3',
author='Wolf Vollprecht',
author_email='[email protected]',
Expand Down Expand Up @@ -76,10 +75,10 @@ def package_files(directory):
'uberwriter_lib.pylocales' : ['locales.db'],
},
data_files=[
(app_prefix + 'usr/bin', ['bin/uberwriter']),
(app_prefix + 'usr/share/glib-2.0/schemas', ['data/de.wolfvollprecht.UberWriter.gschema.xml']),
(app_prefix + 'usr/share/icons/hicolor/scalable/apps', ['data/media/de.wolfvollprecht.UberWriter.svg']),
(app_prefix + 'usr/share/applications', ['de.wolfvollprecht.UberWriter.desktop']),
(app_prefix + 'bin', ['bin/uberwriter']),
(app_prefix + 'share/glib-2.0/schemas', ['data/de.wolfvollprecht.UberWriter.gschema.xml']),
(app_prefix + 'share/icons/hicolor/scalable/apps', ['data/media/de.wolfvollprecht.UberWriter.svg']),
(app_prefix + 'share/applications', ['de.wolfvollprecht.UberWriter.desktop']),
(app_prefix + 'opt/uberwriter/data/ui', extra_files_ui),
(app_prefix + 'opt/uberwriter/data/media', extra_files_media),
(app_prefix + 'opt/uberwriter/data/lua', extra_files_scripts)
Expand Down

0 comments on commit d589729

Please sign in to comment.