Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions scripts/install.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
#!/bin/bash

mkdir -p bin
install_path="${INSTALL_PATH:-bin}"

mkdir -p $install_path

if [ "$(uname)" == "Darwin" ] && [ "$(uname -p)" == "arm" ]; then
curl -L https://github.com/Awea/pretty-make/releases/latest/download/pretty-make-macos-arm -o bin/pretty-make
# See: https://github.com/Awea/pretty-make/issues/17#issuecomment-1252713764
xattr -d com.apple.quarantine bin/pretty-make
curl -L https://github.com/Awea/pretty-make/releases/latest/download/pretty-make-macos-arm -o "${install_path}/pretty-make"
# See: https://github.com/Awea/pretty-make/issues/17#issuecomment-1252713764
xattr -d com.apple.quarantine "${install_path}/pretty-make"
elif [ "$(uname)" == "Darwin" ]; then
curl -L https://github.com/Awea/pretty-make/releases/latest/download/pretty-make-macos -o bin/pretty-make
curl -L https://github.com/Awea/pretty-make/releases/latest/download/pretty-make-macos -o "${install_path}/pretty-make"
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
curl -L https://github.com/Awea/pretty-make/releases/latest/download/pretty-make-linux -o bin/pretty-make
curl -L https://github.com/Awea/pretty-make/releases/latest/download/pretty-make-linux -o "${install_path}/pretty-make"
fi

chmod 755 bin/pretty-make
chmod 755 "${install_path}/pretty-make"