Update installation guide. (#204)

This commit is contained in:
Ledorub 2024-08-27 05:57:51 +03:00 committed by GitHub
parent 3a7283662a
commit 97d9fb157b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,32 @@
# Installation # Installation
## Homebrew 🍻
```bash
brew install spoofdpi
```
### Usage
#### Binary
You can start SpoofDPI with:
```bash
spoofdpi
```
#### Service
Alternatively you can start SpoofDPI as a service
- with automatic relaunch on startup:
```bash
brew services start spoofdpi
```
- without:
```bash
brew services run spoofdpi
```
##### Logs
When running as a service, SpoofDPI writes logs to
```text
$HOMEBREW_PREFIX/var/log/spoofdpi/output.log
$HOMEBREW_PREFIX/var/log/spoofdpi/error.log
```
## Binary ## Binary
SpoofDPI will be installed in `~/.spoof-dpi/bin`. SpoofDPI will be installed in `~/.spoof-dpi/bin`.
To run SpoofDPI in any directory, add the line below to your `~/.bashrc || ~/.zshrc || ...` To run SpoofDPI in any directory, add the line below to your `~/.bashrc || ~/.zshrc || ...`
@ -30,7 +57,6 @@ curl -fsSL https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bas
curl -fsSL https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash -s linux-mipsle curl -fsSL https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash -s linux-mipsle
``` ```
## Go ## Go
You can also install SpoofDPI with `go install` You can also install SpoofDPI with `go install`
```bash ```bash