2 Commits

Author SHA1 Message Date
Cametendo
cb9b464a99 Added uninstall.sh 2026-04-24 07:58:00 +02:00
cc3bd2a3a5 Update README.md for installation on Arch 2026-04-23 19:57:05 +02:00
2 changed files with 20 additions and 0 deletions

View File

@@ -77,6 +77,14 @@ To install cflash globally so that it can be run from any terminal:
* The `build.sh` script compiles all Java source files and creates an executable `cflash.jar`. * The `build.sh` script compiles all Java source files and creates an executable `cflash.jar`.
* The `install.sh` script copies `cflash.jar` to `/usr/local/lib/cflash` and installs a wrapper script in `/usr/local/bin` for easy execution. * The `install.sh` script copies `cflash.jar` to `/usr/local/lib/cflash` and installs a wrapper script in `/usr/local/bin` for easy execution.
* If you use Arch Linux:
* You can directly install it with `yay` or `paru` via `yay -S cflash` / `paru -S cflash` or
* You can clone the repository from the [AUR](https://aur.archlinux.org/packages/cflash) and manually build it:
```bash
git clone https://aur.archlinux.org/cflash.git
cd cflash
makepkg -si
```
# Usage # Usage
- Using the command `cflash` in the terminal, will start the flashing process. You will be asked several question before the flashing begins: - Using the command `cflash` in the terminal, will start the flashing process. You will be asked several question before the flashing begins:

12
uninstall.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
# Uninstall script for cflash
if [[ $EUID -ne 0 ]]; then
echo "Please run as root to uninstall globally."
exit 1
fi
rm -f /usr/local/bin/cflash
rm -rf /usr/local/lib/cflash
echo "cflash uninstalled successfully."