diff --git a/mac-setup b/mac-setup index 9a5e0aa..f29fa16 100755 --- a/mac-setup +++ b/mac-setup @@ -14,10 +14,15 @@ export PROJECT_DIR init_paths_and_vars -if ! is_installed "macports" ; then - recipe 'macports' - set_installed "macports" -fi +function install() { + if ! is_installed "$1" ; then + recipe "$1" + set_installed "$1" + fi +} -recipe "finicky" -recipe 'bitwarden' +install "macports" +install "finicky" +install "bitwarden" +install "nextcloud" +install "bettertouchtool" diff --git a/recipes/mac-setup/bettertouchtool b/recipes/mac-setup/bettertouchtool new file mode 100755 index 0000000..9f511dd --- /dev/null +++ b/recipes/mac-setup/bettertouchtool @@ -0,0 +1,4 @@ +#! /bin/bash + +curl -o "$TMP_DIR/BetterTouchTool.zip" "https://folivora.ai/releases/BetterTouchTool.zip" +unzip -d "/Applications" "$TMP_DIR/BetterTouchTool.zip" diff --git a/recipes/mac-setup/nextcloud b/recipes/mac-setup/nextcloud new file mode 100755 index 0000000..c183fea --- /dev/null +++ b/recipes/mac-setup/nextcloud @@ -0,0 +1,6 @@ +#! /bin/bash + +VERSION=3.3.5 +FILENAME=Nextcloud-$VERSION.pkg +curl -L -o "$TMP_DIR/$FILENAME" "https://github.com/nextcloud/desktop/releases/download/v${VERSION}/$FILENAME" +sudo installer -pkg "$TMP_DIR/$FILENAME" -target /