Merge pull request #147 from MightyCreak/docs/custom-dir-installation

Add instructions to install Diffuse locally
This commit is contained in:
Creak 2022-04-03 19:26:10 -04:00 committed by GitHub
commit da4683866e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 1 deletions

View File

@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added a `--remove-obsolete` option for the update-translation.py script
- Added links to VCSs in README.md
- New keyword in config file: "option"
- Added instructions to install and run from a custom directory
### Changed
- Updated the translation files

View File

@ -75,14 +75,32 @@ flatpak remove io.github.mightycreak.Diffuse
Diffuse build system is meson.
To install diffuse locally:
To compile and test Diffuse:
```sh
meson setup build
cd build
meson compile
meson test
```
To install Diffuse on your system (e.g. `/usr/local/`):
```sh
meson install # requires admin privileges
# Run Diffuse
diffuse
```
To install Diffuse on a custom directory (e.g. `~/bin/diffuse`):
```sh
meson install --destdir ~/bin/diffuse
# Run Diffuse
cd ~/bin/diffuse/usr/local/bin
PYTHONPATH=$HOME/bin/diffuse/usr/local/share/diffuse ./diffuse
```
To uninstall diffuse afterwards: