Skip to content

Commit

Permalink
update setup.py for matrix install
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-dvorak committed May 9, 2024
1 parent 6c2c67f commit 3839019
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dosview/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
__version__ = "0.1.13"
__version__ = "0.1.14"
19 changes: 11 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@ def run(self):

install.run(self)

if not os.path.exists('/usr/local/share/applications'):
os.makedirs('/usr/local/share/applications')
copyfile('dosview.desktop', '/usr/local/share/applications/dosview.desktop')

if not os.path.exists('/usr/local/share/icons'):
os.makedirs('/usr/local/share/icons')
copyfile('media/icon_ust.png', '/usr/local/share/icons/icon_ust.png')

try:
if not os.path.exists('/usr/local/share/applications'):
os.makedirs('/usr/local/share/applications')
copyfile('dosview.desktop', '/usr/local/share/applications/dosview.desktop')

if not os.path.exists('/usr/local/share/icons'):
os.makedirs('/usr/local/share/icons')
copyfile('media/icon_ust.png', '/usr/local/share/icons/icon_ust.png')
except Exception as e:
print(f"Error: {e}")
print("Dosview intsallation script failed .. ")
# Get the commit hash
#commit_hash = subprocess.check_output(['git', 'rev-parse', 'HEAD']).decode().strip()

Expand Down

0 comments on commit 3839019

Please sign in to comment.