Update Mac setup to install new apps and newer versions

This commit is contained in:
ViViDboarder 2023-03-08 10:45:39 -08:00
parent 260738a1fe
commit 6cfc69a116
11 changed files with 52 additions and 14 deletions

View File

@ -14,9 +14,16 @@ export PROJECT_DIR
init_paths_and_vars init_paths_and_vars
# Require human intervention, do first and get out of the way
install "bitwarden"
install "yubico_auth"
install "nextcloud"
install "macports" install "macports"
# Automated
install "generate_ssh_keys" install "generate_ssh_keys"
install "finicky" install "finicky"
install "bitwarden" install "firefox"
install "nextcloud"
install "bettertouchtool" install "bettertouchtool"
install "textmate"
install "dash"

View File

@ -1,4 +1,4 @@
#! /bin/bash #! /bin/bash
set -e
curl -o "$TMP_DIR/BetterTouchTool.zip" "https://folivora.ai/releases/BetterTouchTool.zip" curl -o "$TMP_DIR/BetterTouchTool.zip" "https://folivora.ai/releases/BetterTouchTool.zip"
unzip -d "/Applications" "$TMP_DIR/BetterTouchTool.zip" unzip -od "/Applications" "$TMP_DIR/BetterTouchTool.zip"

View File

@ -2,4 +2,4 @@
log "Install bitwarden from App Store" log "Install bitwarden from App Store"
open "https://apps.apple.com/us/app/bitwarden/id1352778147?mt=12" open "https://apps.apple.com/us/app/bitwarden/id1352778147?mt=12"
prompt_any prompt_any

5
recipes/mac-setup/dash Executable file
View File

@ -0,0 +1,5 @@
#! /bin/bash
VERSION=v6
FILENAME=Dash.zip
curl --location -o "$TMP_DIR/$FILENAME" "https://sanfrancisco.kapeli.com/downloads/$VERSION/Dash.zip"
unzip -od /Applications/ "$TMP_DIR/$FILENAME"

View File

@ -1,14 +1,13 @@
#! /bin/bash #! /bin/bash
set -e set -e
VERSION=3.4.0 VERSION=3.4.0
curl -L -o "$PROJECT_DIR/tmp/Finicky.zip" "https://github.com/johnste/finicky/releases/download/v${VERSION}/Finicky.zip" curl -L -o "$PROJECT_DIR/tmp/Finicky.zip" "https://github.com/johnste/finicky/releases/download/v${VERSION}/Finicky.zip"
unzip -d "$HOME/Applications" "$PROJECT_DIR/tmp/Finicky.zip" unzip --od "$HOME/Applications" "$PROJECT_DIR/tmp/Finicky.zip"
icloud_prefs="$HOME/Library/Mobile Documents/com~apple~CloudDocs/Synced Preferences" icloud_prefs="$HOME/Library/Mobile Documents/com~apple~CloudDocs/Synced Preferences"
if [ -d "$icloud_prefs" ]; then if [ -d "$icloud_prefs" ]; then
try_link "$icloud_prefs/finicky.js" "$HOME/.finicky.js" try_link "$icloud_prefs/finicky.js" "$HOME/.finicky.js"
fi fi

8
recipes/mac-setup/firefox Executable file
View File

@ -0,0 +1,8 @@
#! /bin/bash
set -e
FILENAME=Firefox-Latest.dmg
curl --location -o "$TMP_DIR/$FILENAME" "https://download.mozilla.org/?product=firefox-latest-ssl&os=osx&lang=en-US"
hdiutil attach "$TMP_DIR/$FILENAME"
cp -r /Volumes/Firefox/Firefox.app /Applications/
hdiutil detach /Volumes/Firefox

6
recipes/mac-setup/iterm2 Executable file
View File

@ -0,0 +1,6 @@
#! /bin/bash
VERSION=v6
FILENAME=Dash.zip
curl --location -o "$TMP_DIR/$FILENAME" "https://iterm2.com/downloads/stable/latest"
unzip "$TMP_DIR/$FILENAME"
mv -f "$TMP_DIR/Dash.app" /Applications/

View File

@ -1,8 +1,11 @@
#! /bin/bash #! /bin/bash
set -e
MACPORTS_VERSION=2.7.1 MACPORTS_VERSION=2.8.1
MACOS_VERSION=$(sw_vers -productVersion) MACOS_VERSION=$(sw_vers -productVersion)
case $MACOS_VERSION in case $MACOS_VERSION in
13.*)
MACOS_NAME=13-Ventura
;;
12.*) 12.*)
MACOS_NAME=12-Monterey MACOS_NAME=12-Monterey
;; ;;
@ -25,7 +28,7 @@ log "Download $INSTALLER_NAME"
curl -o "${PROJECT_DIR}/tmp/${INSTALLER_NAME}" -L "https://github.com/macports/macports-base/releases/download/v${MACPORTS_VERSION}/${INSTALLER_NAME}" curl -o "${PROJECT_DIR}/tmp/${INSTALLER_NAME}" -L "https://github.com/macports/macports-base/releases/download/v${MACPORTS_VERSION}/${INSTALLER_NAME}"
log "Install xcode tools" log "Install xcode tools"
xcode-select --install xcode-select --install || true
log "Run macports installer" log "Run macports installer"
sudo installer -pkg "${PROJECT_DIR}/tmp/${INSTALLER_NAME}" -target / sudo installer -pkg "${PROJECT_DIR}/tmp/${INSTALLER_NAME}" -target /

View File

@ -1,6 +1,6 @@
#! /bin/bash #! /bin/bash
VERSION=3.3.5 VERSION=3.7.3
FILENAME=Nextcloud-$VERSION.pkg FILENAME=Nextcloud-$VERSION.pkg
curl -L -o "$TMP_DIR/$FILENAME" "https://github.com/nextcloud/desktop/releases/download/v${VERSION}/$FILENAME" curl -L -o "$TMP_DIR/$FILENAME" "https://github.com/nextcloud/desktop/releases/download/v${VERSION}/$FILENAME"
sudo installer -pkg "$TMP_DIR/$FILENAME" -target / sudo installer -pkg "$TMP_DIR/$FILENAME" -target /

5
recipes/mac-setup/textmate Executable file
View File

@ -0,0 +1,5 @@
#! /bin/bash
set -e
FILENAME=TextMate_Latest.tbz
curl --location -o "$TMP_DIR/$FILENAME" "https://api.textmate.org/downloads/release?os=10.12"
tar -xzf "$TMP_DIR/$FILENAME" -C /Applications/

5
recipes/mac-setup/yubico_auth Executable file
View File

@ -0,0 +1,5 @@
#! /bin/bash
log "Install Yubico Auth from App Store"
open "https://apps.apple.com/us/app/yubico-authenticator/id1497506650?mt=12"
prompt_any