Skip to content

Commit 05719e7

Browse files
Adds more features and improves install procedure
1 parent 2498a0e commit 05719e7

File tree

13 files changed

+263
-85
lines changed

13 files changed

+263
-85
lines changed

Applications/AlDente.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env zsh
2+
3+
function installAppAlDente(){
4+
# --> Download
5+
downloadFromUrl "https://apphousekitchen.com/aldente/AlDente-Pro.dmg" "AlDente.dmg"
6+
# --> Mount & move
7+
unmountFile "AlDente.dmg" "AlDente"
8+
moveApplication "AlDente.app"
9+
}
10+
export -f installAppAlDente

Applications/BeyondCompare.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/usr/bin/env zsh
22

33
function installAppBeyondCompare(){
4-
# --> Find current version and build number for dynamic download URL
5-
local version=$(curl -s "https://www.scootersoftware.com/download.php" | awk -F '[, .]+' '/Current Version:/ {print $3"."$4"."$5"."$7}' | sed 's/[[:space:]]//g')
6-
if [ -z "$version" ]; then
4+
# --> Find dynamic download path for the latest version and build number
5+
local downloadVersion=$(curl -s "https://www.scootersoftware.com/download.php" | grep -o -m 1 '/files/BCompareOSX-[0-9.]\+\.zip')
6+
if [ -z "$downloadVersion" ]; then
77
showinfo "Failed to extract App version from\nhttps://www.scootersoftware.com/download.php" "error"
88
return 1 # error
99
else
10-
local downloadUrl="https://www.scootersoftware.com/BCompareOSX-$version.zip"
10+
local downloadUrl="https://www.scootersoftware.com$downloadVersion"
1111
# --> Download & Unzip
1212
downloadFromUrl "$downloadUrl" "BeyondCompare.zip"
1313
unzipFile "BeyondCompare.zip"

Applications/GrandPerspective.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env zsh
2+
3+
function installAppGrandPerspective(){
4+
# --> Version
5+
local version="3.4.2"
6+
# --> Download
7+
local downloadFromUrl "https://downloads.sourceforge.net/project/grandperspectiv/grandperspective/$version/GrandPerspective-3_4_2.dmg?ts=gAAAAABlBrA5VHhuRY9rcLD3hJgR2C3IQciYRJgp5UlHW-BBkHMzhcBWavFsEdHTYCFyKnHWoc_COkxXYhEn37gEWywXjkMo0w%3D%3D" "GrandPerspective.dmg"
8+
# --> Mount & copy
9+
# (Cannot use unmountFile() function due to Volume having a different name than the App)
10+
hdiutil attach "$downloadFolder/GrandPerspective.dmg" -quiet
11+
cp -R "/Volumes/GrandPerspective $version/GrandPerspective.app" "$downloadFolder"
12+
# --> Unmount & move
13+
hdiutil unmount "/Volumes/GrandPerspective $version" -force -quiet
14+
moveApplication "GrandPerspective.app"
15+
}
16+
export -f installAppGrandPerspective

Applications/Homebrew.sh

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
# Homebrew installation
44
function installAppHomebrew(){
55
if ! checkIfHomebrewInstalled; then
6-
# --> Add Homebrew to User's PATH
7-
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> $HOME/.zprofile
8-
eval "$(/opt/homebrew/bin/brew shellenv)"
9-
source $HOME/.zprofile
10-
116
# --> Check for Xcode CLT
127
# (pre-requisite for Homebrew)
138
if ! checkIfXcodeInstalled; then
@@ -26,8 +21,15 @@ export -f installAppHomebrew
2621

2722
# Homebrew configurations
2823
function configureAppHomebrew(){
29-
# Enable Homebrew's Auto-Update (requires LaunchAgents directory)
30-
mkdir -p "$HOME/Library/LaunchAgents"
31-
brew autoupdate start --upgrade
24+
if checkIfHomebrewInstalled; then
25+
# --> Add Homebrew to User's PATH
26+
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> $HOME/.zprofile
27+
# --> Reload ZSH Shell config file
28+
source $HOME/.zprofile
29+
30+
# --> Enable Homebrew's Auto-Update (requires LaunchAgents directory)
31+
mkdir -p "$HOME/Library/LaunchAgents"
32+
brew autoupdate start --upgrade
33+
fi
3234
}
3335
export -f configureAppHomebrew

Applications/LinearMouse.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env zsh
2+
3+
function installAppLinearMouse(){
4+
# --> Download
5+
downloadFromUrl "https://dl.linearmouse.org/latest/LinearMouse.dmg" "LinearMouse.dmg"
6+
# --> Mount & move
7+
unmountFile "LinearMouse.dmg" "LinearMouse"
8+
moveApplication "LinearMouse.app"
9+
}
10+
export -f installAppLinearMouse

Applications/MacAppStoreCLI.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function configureAppMacAppStore(){
2323
local BOLD=$(tput bold)
2424
local REGULAR=$(tput sgr0)
2525
local countdown=$((retries * 5))
26-
showinfo "Please open App Store and sign in using your Apple ID. Skipping this check in: ${BOLD}$countdown seconds${REGULAR}" "error"
26+
showinfo "Please open App Store and sign in using your Apple ID.\nSkipping this check in: ${BOLD}$countdown seconds${REGULAR}" "error"
2727
((retries--))
2828
sleep 5
2929
done

Applications/MacsFanControl.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env zsh
2+
3+
function installAppMacsFanControl(){
4+
# --> Download & Unzip
5+
downloadFromUrl "https://crystalidea.com/downloads/macsfancontrol.zip" "MacsFanControl.zip"
6+
# --> Unzip
7+
unzipFile "MacsFanControl.zip"
8+
# --> Move & open Application
9+
moveApplication "Macs Fan Control.app" "open"
10+
}
11+
export -f installAppMacsFanControl

Applications/OrbStack.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/env zsh
2+
3+
function installAppOrbStack(){
4+
# --> Set Download URL
5+
if checkIfAppleSilicion; then
6+
# ...for ARM-based Apple Silicon Macs
7+
local downloadUrl="https://orbstack.dev/download/beta/latest/arm64"
8+
else
9+
# ...for Intel-based Macs / Universal (Fallback)
10+
local downloadUrl="https://orbstack.dev/download/beta/latest/amd64"
11+
fi
12+
# --> Download
13+
downloadFromUrl "$downloadUrl" "OrbStack.dmg"
14+
# --> Mount & copy
15+
# (Cannot use unmountFile() function due to Volume having a different name than the App)
16+
hdiutil attach "$downloadFolder/OrbStack.dmg" -quiet
17+
cp -R /Volumes/Install\ OrbStack\ v*/OrbStack.app "$downloadFolder"
18+
# --> Unmount & move
19+
hdiutil unmount /Volumes/Install\ OrbStack\ v* -force -quiet
20+
moveApplication "OrbStack.app"
21+
}
22+
export -f installAppOrbStack
23+
24+
function brewinstallAppOrbStack(){
25+
# --> Installation
26+
brew install orbstack
27+
}
28+
export -f brewinstallAppOrbStack

Applications/eqMac.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env zsh
2+
3+
function installAppEqMac(){
4+
# --> Download
5+
downloadFromUrl "https://github.com/bitgapp/eqMac/releases/latest/download/eqMac.dmg" "eqMac.dmg"
6+
# --> Mount & move
7+
unmountFile "eqMac.dmg" "eqMac"
8+
moveApplication "eqMac.app"
9+
}
10+
export -f installAppEqMac

FilesFolders/Userfiles.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env zsh
2+
3+
# -- Userhome files --
4+
# --> Create .zprofile ZSH Shell configuration file
5+
function createUserFileZprofile(){
6+
local zprofilePath="$HOME/.zprofile"
7+
if ! checkIfFileExists $zprofilePath; then
8+
touch $zprofilePath
9+
fi
10+
}
11+
export -f createUserFileZprofile

0 commit comments

Comments
 (0)