1
0
Fork 0

build pomky only when it's not installed

This commit is contained in:
Kim, Jimin 2022-07-07 10:25:10 +09:00
parent 17ecfe7aea
commit 4bf25ae02f

View file

@ -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")