mirror of
https://github.com/mhx/dwarfs.git
synced 2025-08-03 17:56:12 -04:00
docs: describe how to install FUSE driver using homebrew on macOS
This commit is contained in:
parent
4d2af1726c
commit
5e8829bf67
59
README.md
59
README.md
@ -29,7 +29,6 @@ A fast high compression read-only file system for Linux and Windows.
|
|||||||
- [Windows Support](#windows-support)
|
- [Windows Support](#windows-support)
|
||||||
- [Building on Windows](#building-on-windows)
|
- [Building on Windows](#building-on-windows)
|
||||||
- [macOS Support](#macos-support)
|
- [macOS Support](#macos-support)
|
||||||
- [Building on macOS](#building-on-macos)
|
|
||||||
- [Use Cases](#use-cases)
|
- [Use Cases](#use-cases)
|
||||||
- [Astrophotography](#astrophotography)
|
- [Astrophotography](#astrophotography)
|
||||||
- [Dealing with Bit Rot](#dealing-with-bit-rot)
|
- [Dealing with Bit Rot](#dealing-with-bit-rot)
|
||||||
@ -635,64 +634,14 @@ $ brew test dwarfs
|
|||||||
```
|
```
|
||||||
|
|
||||||
The macOS version of the DwarFS filesystem driver relies on the awesome
|
The macOS version of the DwarFS filesystem driver relies on the awesome
|
||||||
[macFUSE](https://osxfuse.github.io/) project. Until a formula has been
|
[macFUSE](https://osxfuse.github.io/) project and is available from
|
||||||
added, you will have to build the DwarFS FUSE driver manually.
|
gromgit's [homebrew-fuse tap](https://github.com/gromgit/homebrew-fuse):
|
||||||
|
|
||||||
### Building on macOS
|
|
||||||
|
|
||||||
Building on macOS should be relatively straightforward:
|
|
||||||
|
|
||||||
- Install [Homebrew](https://brew.sh/)
|
|
||||||
|
|
||||||
- Use Homebrew to install the necessary dependencies:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
$ brew install cmake ninja macfuse brotli howard-hinnant-date double-conversion \
|
$ brew tap gromgit/homebrew-fuse
|
||||||
fmt glog libarchive libevent flac openssl nlohmann-json pkg-config \
|
$ brew install dwarfs-fuse-mac
|
||||||
range-v3 utf8cpp xxhash boost zstd
|
|
||||||
```
|
```
|
||||||
|
|
||||||
- When installing macFUSE for the first time, you'll need to explicitly
|
|
||||||
allow the software in *System Preferences* / *Privacy & Security*. It's
|
|
||||||
quite likely that you'll have to reboot after this.
|
|
||||||
|
|
||||||
- Download a release tarball from the [releases page](https://github.com/mhx/dwarfs/releases)
|
|
||||||
and extract it:
|
|
||||||
|
|
||||||
```
|
|
||||||
$ wget https://github.com/mhx/dwarfs/releases/download/v0.10.0/dwarfs-0.10.0.tar.xz
|
|
||||||
$ tar xf dwarfs-0.10.0.tar.xz
|
|
||||||
```
|
|
||||||
|
|
||||||
- Build DwarFS and run its tests:
|
|
||||||
|
|
||||||
```
|
|
||||||
$ cmake --fresh -B dwarfs-build -S dwarfs-0.10.0 -GNinja -DWITH_TESTS=ON
|
|
||||||
$ cmake --build dwarfs-build
|
|
||||||
$ ctest --test-dir dwarfs-build -j
|
|
||||||
```
|
|
||||||
|
|
||||||
- If you don't need the FUSE driver, you can omit `macfuse` from the `brew install`
|
|
||||||
and use the following instead of the first `cmake` command above:
|
|
||||||
|
|
||||||
```
|
|
||||||
$ cmake --fresh -B dwarfs-build -S dwarfs-0.10.0 -GNinja -DWITH_TESTS=ON -DWITH_FUSE_DRIVER=OFF
|
|
||||||
```
|
|
||||||
|
|
||||||
- To *only* build the FUSE driver, you can use this instead:
|
|
||||||
|
|
||||||
```
|
|
||||||
$ cmake --fresh -B dwarfs-build -S dwarfs-0.10.0 -GNinja -DWITH_TESTS=ON -DWITH_LIBDWARFS=OFF -DWITH_TOOLS=OFF
|
|
||||||
```
|
|
||||||
|
|
||||||
- Install DwarFS:
|
|
||||||
|
|
||||||
```
|
|
||||||
$ sudo cmake --install dwarfs-build
|
|
||||||
```
|
|
||||||
|
|
||||||
That's it!
|
|
||||||
|
|
||||||
## Use Cases
|
## Use Cases
|
||||||
|
|
||||||
### Astrophotography
|
### Astrophotography
|
||||||
|
Loading…
x
Reference in New Issue
Block a user