diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5918c6c --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +project_vnv +build +dist +rice-cook.spec + diff --git a/README.md b/README.md index d4e7e60..2ff24c6 100644 --- a/README.md +++ b/README.md @@ -32,10 +32,28 @@ ________________________________________________________________________________ ![](images/a.png) # How to run : -- copy binary from [releases](https://github.com/acidburnmonkey/rice-cook/releases) and data.txt into a dotfiles backup forlder -- Must run with sudo -HE flags ``` -sudo -HE ./rice-cook +git clone https://github.com/acidburnmonkey/rice-cook.git && cd rice-cook + +``` +``` +chmod +x preinstall.sh && sudo ./preinstall.sh +``` +``` +sudo pip3 install -r requierements.txt +``` +### Now move rice-cook.py & data.txt into dofiles directry and run it: +``` +sudo python3 rice-cook.py +``` +Should look like this . +``` +|-dotfiles +|---nvim +|---ranger +|---etc... +|---data.txt +|---rice-cook.py ``` ## Donate diff --git a/preinstall.sh b/preinstall.sh new file mode 100644 index 0000000..76cd720 --- /dev/null +++ b/preinstall.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +#check for update and cash them +sudo dnf check-update + +# DNF reqs +sudo dnf install -y python3-tkinter python3-devel python3-pip + +#pip +python3 -m pip3 install --upgrade pip + diff --git a/requierements.txt b/requierements.txt new file mode 100644 index 0000000..894123e --- /dev/null +++ b/requierements.txt @@ -0,0 +1,24 @@ +beautifulsoup4==4.12.3 +certifi==2024.2.2 +charset-normalizer==3.3.2 +filelock==3.13.3 +gdown==5.1.0 +idna==3.6 +markdown-it-py==3.0.0 +mdurl==0.1.2 +MouseInfo==0.1.3 +PyAutoGUI==0.9.54 +PyGetWindow==0.0.9 +Pygments==2.17.2 +PyMsgBox==1.0.9 +pyperclip==1.8.2 +PyRect==0.2.0 +PyScreeze==0.1.30 +PySocks==1.7.1 +python3-xlib==0.15 +pytweening==1.2.0 +requests==2.31.0 +rich==13.7.1 +soupsieve==2.5 +tqdm==4.66.2 +urllib3==2.2.1 diff --git a/rice-cook.py b/rice-cook.py index 82d6a72..46031f6 100755 --- a/rice-cook.py +++ b/rice-cook.py @@ -36,21 +36,23 @@ console = Console(theme=ap_theme) user = os.getlogin() home = os.path.join('/home',user) + def main(): setup = '' - confirm_user ='' - + # confirm_user ='' + local_user = user + sudo_check() - console.print(f"Setting up for user {user} ", style='promp') - while(True): - confirm_user = input(" y/n ") - if (confirm_user.lower() == 'n'): - user = imput('Type username : ') - continue - elif (confirm_user.lower() == 'y'): - break + console.print(f"Setting up for user {local_user} ", style='promp') + # while(True): + # confirm_user = input(" y/n ") + # if (confirm_user.lower() == 'n'): + # user := input('Type username : ') + # continue + # elif (confirm_user.lower() == 'y'): + # break #set temporary resolution for sesion