forked from Wobbl/Wobuzz
Added icon and desktop entry.
This commit is contained in:
parent
ed92c46f95
commit
060132be36
4 changed files with 115 additions and 1 deletions
12
setup.py
12
setup.py
|
@ -1,10 +1,20 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
import setuptools
|
||||
import os
|
||||
from pathlib import Path
|
||||
import shutil
|
||||
|
||||
this_directory = Path(__file__).parent
|
||||
desktop_entry_path = os.path.expanduser("~/.local/share/applications")
|
||||
icon_path = os.path.expanduser("~/.local/share/icons/hicolor/scalable/apps")
|
||||
|
||||
os.makedirs(icon_path, exist_ok=True)
|
||||
|
||||
shutil.copy(f"{this_directory}/wobuzz.desktop", f"{desktop_entry_path}/wobuzz.desktop") # install desktop entry
|
||||
shutil.copy(f"{this_directory}/wobuzz/icon.svg", f"{icon_path}/wobuzz.svg") # install icon
|
||||
|
||||
# use readme file as long description
|
||||
this_directory = Path(__file__).parent
|
||||
long_description = (this_directory / "README.md").read_text()
|
||||
|
||||
setuptools.setup(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue