Optimized setup procedure

This commit is contained in:
Kevin Veen-Birkenbach
2025-04-01 15:37:07 +02:00
parent ff0f3e0f1c
commit baa604f7ba
3 changed files with 20 additions and 4 deletions

10
Makefile Normal file
View File

@@ -0,0 +1,10 @@
.PHONY: install setup
setup: install
@python main.py install
install:
@echo "Making 'main.py' executable..."
@chmod +x main.py
@echo "Installing packages from 'requirements.txt'..."
@pip install -r requirements.txt

View File

@@ -24,22 +24,27 @@
- **Custom Aliases:** - **Custom Aliases:**
Generate and manage custom aliases for easy command invocation. Generate and manage custom aliases for easy command invocation.
## Installation ⚙️ ## Installation ⚙️
Clone the repository and make sure your `~/.local/bin` is in your system PATH: Clone the repository and ensure your `~/.local/bin` is in your system PATH:
```bash ```bash
git clone https://github.com/kevinveenbirkenbach/package-manager.git git clone https://github.com/kevinveenbirkenbach/package-manager.git
cd package-manager cd package-manager
chmod +x main.py
``` ```
Then install or update your commands: Then, run the following command to set up the project:
```bash ```bash
./main.py install --all make setup
``` ```
The `make setup` command will:
- Make `main.py` executable.
- Install required packages from `requirements.txt`.
- Execute `python main.py install` to complete the installation.
## Usage 📖 ## Usage 📖
Run the script with different commands. For example: Run the script with different commands. For example:

1
requirements.txt Normal file
View File

@@ -0,0 +1 @@
yaml