build pomky only when it's not installed
This commit is contained in:
parent
17ecfe7aea
commit
4bf25ae02f
1 changed files with 5 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
from src.util import run, copy_file
|
||||
from src.util import run, copy_file, command_exists
|
||||
from src.constants import tmp_dir
|
||||
|
||||
name = "pomky"
|
||||
|
@ -7,6 +7,8 @@ name = "pomky"
|
|||
def setup():
|
||||
"""conky but rusty"""
|
||||
|
||||
run(f"git clone --depth 1 https://github.com/developomp/pomky {tmp_dir}/pomky")
|
||||
run(f"cd {tmp_dir}/pomky && cargo install --path .")
|
||||
if not command_exists("pomky"):
|
||||
run(f"git clone --depth 1 https://github.com/developomp/pomky {tmp_dir}/pomky")
|
||||
run(f"cd {tmp_dir}/pomky && cargo install --path .")
|
||||
|
||||
copy_file("home/.config/autostart/pomky.desktop")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue