Skip to content

Commit 3839019

Browse files
committed
update setup.py for matrix install
1 parent 6c2c67f commit 3839019

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

dosview/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env python3
22
# -*- coding: UTF-8 -*-
3-
__version__ = "0.1.13"
3+
__version__ = "0.1.14"

setup.py

+11-8
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,17 @@ def run(self):
1919

2020
install.run(self)
2121

22-
if not os.path.exists('/usr/local/share/applications'):
23-
os.makedirs('/usr/local/share/applications')
24-
copyfile('dosview.desktop', '/usr/local/share/applications/dosview.desktop')
25-
26-
if not os.path.exists('/usr/local/share/icons'):
27-
os.makedirs('/usr/local/share/icons')
28-
copyfile('media/icon_ust.png', '/usr/local/share/icons/icon_ust.png')
29-
22+
try:
23+
if not os.path.exists('/usr/local/share/applications'):
24+
os.makedirs('/usr/local/share/applications')
25+
copyfile('dosview.desktop', '/usr/local/share/applications/dosview.desktop')
26+
27+
if not os.path.exists('/usr/local/share/icons'):
28+
os.makedirs('/usr/local/share/icons')
29+
copyfile('media/icon_ust.png', '/usr/local/share/icons/icon_ust.png')
30+
except Exception as e:
31+
print(f"Error: {e}")
32+
print("Dosview intsallation script failed .. ")
3033
# Get the commit hash
3134
#commit_hash = subprocess.check_output(['git', 'rev-parse', 'HEAD']).decode().strip()
3235

0 commit comments

Comments
 (0)