#!/bin/zsh # Script to install fuse-ext2 on M1 Mac # Install dependencies #brew install e2fsprogs m4 automake autoconf libtool pkg-config cd ~/ if [ ! -d ~/fuse-ext2 ]; then git clone https://github.com/alperakcan/fuse-ext2.git fi cd fuse-ext2 git pull ./autogen.sh ./configure \ PKG_CONFIG_PATH="$(brew --prefix e2fsprogs)/lib/pkgconfig" \ CFLAGS="-idirafter/$(brew --prefix e2fsprogs)/include -idirafter/opt/homebrew/include/osxfuse" \ LDFLAGS="-L$(brew --prefix e2fsprogs)/lib" make # To install on the current system # sudo make install # To create an install package on the desktop make package mv fuse-ext2*.dmg ~/Desktop/fuse-ext2.dmg