Last active
December 12, 2023 10:13
-
-
Save haithngn/53fd7368269b4e53a84c9b0fa672dae8 to your computer and use it in GitHub Desktop.
OSX Dependency Quick Install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Ask for CocoaPods installation | |
read -n 1 -p "Do you want to install CocoaPods? (y/n): " cocoapods | |
echo "" | |
# Ask for Carthage installation | |
read -n 1 -p "Do you want to install Carthage? (y/n): " carthage | |
echo "" | |
# Ask for SwiftLint installation | |
read -n 1 -p "Do you want to install SwiftLint? (y/n): " swiftLint | |
echo "" | |
# Ask for SwiftGen installation | |
read -n 1 -p "Do you want to install SwiftGen? (y/n): " swiftGen | |
echo "" | |
# Ask for Firebase CLI installation | |
read -n 1 -p "Do you want to install Firebase CLI? (y/n): " firebaseCLI | |
echo "" | |
# Ask for App Center CLI installation | |
read -n 1 -p "Do you want to install App Center CLI? (y/n): " appCenterCLI | |
echo "" | |
# Ask for Fastlane installation | |
read -n 1 -p "Do you want to install Fastlane? (y/n): " fastlane | |
echo "" | |
# Ask for Postman installation | |
read -n 1 -p "Do you want to install Postman? (y/n): " postman | |
echo "" | |
# Ask for iTerm2 installation | |
read -n 1 -p "Do you want to install iTerm2? (y/n): " iTerm2 | |
echo "" | |
# Ask for ZSH installation | |
read -n 1 -p "Do you want to install ZSH? (y/n): " zsh | |
echo "" | |
# Ask for Visual Studio Code installation | |
read -n 1 -p "Do you want to install Visual Studio Code? (y/n):" visualStudioCode | |
echo "" | |
# Ask for SourceTree installation | |
read -n 1 -p "Do you want to install SourceTree? (y/n): " sourceTree | |
echo "" | |
# Ask for SQLite Browser installation | |
read -n 1 -p "Do you want to install SQLite Browser? (y/n): " sqliteBrowser | |
echo "" | |
# Ask for confirmation before starting | |
read -n 1 -p "Do you want to start the installation? (y/n): " start | |
echo "" | |
# Ask for Android Studio installation | |
# read -n 1 -p "Do you want to install Android Studio? (y/n): " androidStudio | |
# echo "" | |
# Start installation | |
if [[ "$start" =~ ^[Yy]$ ]]; then | |
# Install Homebrew | |
echo "Installing Homebrew..." | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
# Install CocoaPods | |
if [[ "$cocoapods" =~ ^[Yy]$ ]]; then | |
echo "Installing CocoaPods..." | |
brew install cocoapods | |
echo "CocoaPods installed!" | |
fi | |
# Install Carthage | |
if [[ "$carthage" =~ ^[Yy]$ ]]; then | |
echo "Installing Carthage..." | |
brew install carthage | |
echo "Carthage installed!" | |
fi | |
# Install SwiftLint | |
if [[ "$swiftLint" =~ ^[Yy]$ ]]; then | |
echo "Installing SwiftLint..." | |
brew install swiftlint | |
echo "SwiftLint installed!" | |
fi | |
# Install SwiftGen | |
if [[ "$swiftGen" =~ ^[Yy]$ ]]; then | |
echo "Installing SwiftGen..." | |
brew install swiftgen | |
echo "SwiftGen installed!" | |
fi | |
# Install Firebase CLI | |
if [[ "$firebaseCLI" =~ ^[Yy]$ ]]; then | |
echo "Installing Firebase CLI..." | |
curl -sL https://firebase.tools | bash | |
echo "Firebase CLI installed!" | |
fi | |
# Install App Center CLI | |
if [[ "$appCenterCLI" =~ ^[Yy]$ ]]; then | |
echo "Installing App Center CLI..." | |
brew install node | |
npm install -g appcenter-cli | |
echo "App Center CLI installed!" | |
fi | |
# Install Fastlane | |
if [[ "$fastlane" =~ ^[Yy]$ ]]; then | |
echo "Installing Fastlane..." | |
brew install fastlane | |
echo "Fastlane installed!" | |
fi | |
# Install Postman | |
if [[ "$postman" =~ ^[Yy]$ ]]; then | |
echo "Installing Postman..." | |
brew install --cask postman | |
echo "Postman installed!" | |
fi | |
# Install iTerm2 | |
if [[ "$iTerm2" =~ ^[Yy]$ ]]; then | |
echo "Installing iTerm2..." | |
brew install --cask iterm2 | |
echo "iTerm2 installed!" | |
fi | |
# Install ZSH | |
if [[ "$zsh" =~ ^[Yy]$ ]]; then | |
echo "Installing ZSH..." | |
brew install zsh | |
echo "ZSH installed!" | |
fi | |
# Install Visual Studio Code | |
if [[ "$visualStudioCode" =~ ^[Yy]$ ]]; then | |
echo "Installing Visual Studio Code..." | |
brew install --cask visual-studio-code | |
echo "Visual Studio Code installed!" | |
fi | |
# Install SourceTree | |
if [[ "$sourceTree" =~ ^[Yy]$ ]]; then | |
echo "Installing SourceTree..." | |
brew install --cask sourcetree | |
echo "SourceTree installed!" | |
fi | |
# Install SQLite Browser | |
if [[ "$sqliteBrowser" =~ ^[Yy]$ ]]; then | |
echo "Installing SQLite Browser..." | |
brew install --cask db-browser-for-sqlite | |
echo "SQLite Browser installed!" | |
fi | |
# Install Android Studio | |
# if [[ "$androidStudio" =~ ^[Yy]$ ]]; then | |
# echo "Installing Android Studio..." | |
# brew install --cask android-commandlinetools | |
# sdkmanager --install platform-tools | |
# echo "Android Studio installed!" | |
# fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment