feat: Add setup function
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import subprocess
|
||||
|
||||
from commands.util import pacman
|
||||
|
||||
|
||||
def setup():
|
||||
print("==> Installing required packages")
|
||||
if not pacman.install_package_list(["git"]):
|
||||
print("Git installation failed")
|
||||
return
|
||||
subprocess.run(["git", "clone", "https://aur.archlinux.org/yay.git"], cwd="/tmp")
|
||||
subprocess.run(["makepkg", "-si"], cwd="/tmp/yay")
|
||||
print("==> Installation completed")
|
||||
Reference in New Issue
Block a user