setup.macos

đŸ’» Desktop environment preference for macOS Ventura (Apple Sillicon and intel supported); since 2019.3

MIT License

Stars
16
Committers
3

🍎 Auto setup for developing environment on macOS

Desktop environment preference for macOS Sonoma (Apple Silicon and Intel supported) macOS Sonoma (Apple Silicon / intel äžĄćŻŸćżœ) ć‘ă‘ăźäœœæ„­ç’°ćąƒă‚»ăƒƒăƒˆă‚ąăƒƒăƒ—ă‚čクăƒȘプト

Overview

Fully automate the installation and settings of the app to make it easier to create an environment when you buy a new Mac. æ–°ă—ă„ Mac ă‚’èłŒć…„ă—ăŸéš›ă«ă€ă‚ˆă‚Šæ‰‹è»œă«ç’°ćąƒæ§‹çŻ‰ă™ă‚‹ăŸă‚ă«ă€ ケプăƒȘăźă‚€ăƒłă‚čăƒˆăƒŒăƒ«ă‚„èš­ćźšă‚’ć…šè‡Șć‹•ćŒ–ă—ăŸă™ă€‚

Usage

First, give the terminal "full disk access" privileges by seeing the following URL. æœ€ćˆă«ă€ä»„äž‹ăź URL ă‚’ć‚è€ƒă«ă—ăŠă€ ă‚żăƒŒăƒŸăƒŠăƒ«ă«ăƒ•ăƒ«ăƒ‡ă‚Łă‚čă‚Żă‚ąă‚Żă‚»ă‚čæš©é™ă‚’äžŽăˆăŠăă ă•ă„ă€‚

https://discussions.apple.com/thread/251260652

Then just run the following command! You can also start it by double-clicking from the Finder app. æŹĄă«ä»„äž‹ăźă‚łăƒžăƒłăƒ‰ă‚’ćźŸèĄŒă™ă‚‹ă ă‘ă§ă™ïŒ Finder ă‹ă‚‰ăƒ€ăƒ–ăƒ«ă‚ŻăƒȘăƒƒă‚Żă§è”·ć‹•ă—ăŠă‚‚æ§‹ă„ăŸă›ă‚“ă€‚

./setup

The script used to use the Ansible, but now it didn't because it's a bit too lengthy. か぀おは Ansible ă‚’äœżç”šă—ăŠă„ăŸă—ăŸăŒă€ ć°‘ă€…ć†—é•·ă™ăŽă‚‹ăŸă‚ä»ŠăŻäœżç”šă—ăŠă„ăŸă›ă‚“ă€‚

Details

Apps install

When the interactive operation is required, implemented voice notifications as much as possible. ćŻŸè©±çš„ăȘæ“äœœăŒćż…èŠă«ăȘる栮搈、 ă§ăă‚‹é™ă‚ŠéŸłćŁ°ă§ăźé€šçŸ„ă‚’ă™ă‚‹ă‚ˆă†ă«ćźŸèŁ…ă—ăŠă„ăŸă™ă€‚

Unless otherwise specified, as a general rule, install via Homebrew or Cask. ç‰č筆ăȘき栮搈、掟扇べしど Homebrew ăŸăŸăŻ Cask ç”Œç”±ă§ă‚€ăƒłă‚čăƒˆăƒŒăƒ«ă—ăŸă™ă€‚

note description
! DEPENDENCIES: Removing this app may cause this setup to stop working correctly.
-A without Apple Silicon Processor

Benchmark

Configuration tools

Convert tools for Media binary

Convert tools for Texts

Database

Development

Documentation

Files management

Packages manager

Runtime

Testing

Version control system

Remote

Shell

Signature

System

Text Browsing

Text editors

Virtualizations

Others

Apps that exist in the Mac App Store are temporarily not installed by this script. It's because the installation is unstable and very slow. Mac App Store ă‹ă‚‰ă‚€ăƒłă‚čăƒˆăƒŒăƒ«ćŻèƒœăȘケプăƒȘは、 こぼă‚čクăƒȘăƒ—ăƒˆă§ăŻæš«ćźšçš„ă«ă‚€ăƒłă‚čăƒˆăƒŒăƒ«ă—ăȘă„ă‚ˆă†ă«ă—ăŠă„ăŸă™ă€‚ ă‚€ăƒłă‚čăƒˆăƒŒăƒ«ăŒäžćź‰ćźšă‹ă€éžćžžă«äœŽé€ŸăšăȘるためです。

note description
! DEPENDENCIES: Removing this app may cause this setup to stop working correctly.
-A without Apple Silicon Processor

3D Modeling

Audios, Videos, and Broadcasting

Authentication

Benchmark

Cloud storages

Development

Devices

Documents and Office apps

Games

Memos and Tasks

Messaging and Socials

Remote

Terminal

Text editors

Virtualizations

Web browsers

note description
! DEPENDENCIES: Removing this app may cause this setup to stop working correctly.

Install the upgrade script

Install a script to upgrade the installed app with just one command. ăČăšă€ăźă‚łăƒžăƒłăƒ‰ă ă‘ă§ă€ ă‚€ăƒłă‚čăƒˆăƒŒăƒ«ă—ăŸă‚ąăƒ—ăƒȘă‚’ă‚ąăƒƒăƒ—ă‚°ăƒŹăƒŒăƒ‰ă™ă‚‹ă‚čクăƒȘăƒ—ăƒˆă‚’ă‚€ăƒłă‚čăƒˆăƒŒăƒ«ă—ăŸă™ă€‚

~/bin/update
  • Upgrade the apps installed via the Homebrew
  • Upgrade the plugins of Vagrant
  • Upgrade the Docker images
  • Upgrade the Prezto
  • Upgrade the asdf (.NET, Node.js, and Python)

Pulls some docker images

Image Tag
hello-world latest
alpine latest
busybox latest
debian latest
ubuntu latest
docker dind, git, latest
node 18, 18-alpine, 18-slim, 20, 20-alpine, 20-slim, 22, 22-alpine, 22-slim
gitlab/gitlab-runner latest
ghcr.io/catthehacker/ubuntu act-22.04, act-latest, ubuntu:full-20.04, ubuntu:full-latest

Initialize for Zsh / Prezto / Powerlevel10k

The script creates a symbolic link to the Prezto default profile. Also, add a definition so that you can scan under the ~/.zsh.d folder when starting the interactive shell. ă‚»ăƒƒăƒˆă‚ąăƒƒăƒ— ă‚čクăƒȘプトは Prezto æ—ąćźšăźăƒ—ăƒ­ăƒ•ă‚Ąă‚€ăƒ«ăžă€ ă‚·ăƒłăƒœăƒȘックăƒȘăƒłă‚Żă‚’äœœæˆă—ăŸă™ă€‚ćŒæ™‚ă«ă€ćŻŸè©±ă‚·ă‚§ăƒ«é–‹ć§‹æ™‚ă« ~/.zsh.d ăƒ•ă‚©ăƒ«ăƒ€é…äž‹ă‚’ă‚čă‚­ăƒŁăƒłă§ăă‚‹ă‚ˆă†ćźšçŸ©ă‚’èżœćŠ ă—ăŠă„ăŸă™ă€‚

Initialize for web-frontend development environment

The script creates and installs a local CA in the system root store, and generates locally-trusted certificates using the mkcert. ă‚»ăƒƒăƒˆă‚ąăƒƒăƒ— ă‚čクăƒȘプトは mkcert ă‚’äœżç”šă—ăŠă€ă‚·ă‚čăƒ†ăƒ ăƒ«ăƒŒăƒˆă‚čăƒˆă‚ąă«ăƒ­ăƒŒă‚«ăƒ« CA ă‚’äœœæˆă—ăŠă‚€ăƒłă‚čăƒˆăƒŒăƒ«ă—ă€ăƒ­ăƒŒă‚«ăƒ«ă§äżĄé Œă§ăă‚‹èšŒæ˜Žæ›žă‚’ç”Ÿæˆă—ăŸă™ă€‚

Also, by starting Firefox in this process, if the root store does not exist, it will be initialized. ăŸăŸă€ă“ăźć·„çš‹ă§ Firefox ă‚’è”·ć‹•ă™ă‚‹ă“ăšă«ă‚ˆă‚Šă€ ăƒ«ăƒŒăƒˆă‚čトケが歘朹しăȘă„ć Žćˆă€ćˆæœŸćŒ–ă—ăŸă™ă€‚

Customization of macOS desktop

See: https://macos-defaults.com/

See also

Playground

Using Vagrant and Virtualbox, you can try out the script in a virtual environment. Vagrant ず Virtualbox ă‚’äœżç”šă—ăŠă€ä»źæƒłç’°ćąƒă§ă‚čクăƒȘăƒ—ăƒˆă‚’è©Šă™ă“ăšăŒă§ăăŸă™ă€‚

vagrant up

The script can also be attempted via the test script, but this script is not maintained and is deprecated. こぼă‚čクăƒȘプトを test ă‚čクăƒȘăƒ—ăƒˆç”Œç”±ă§ă‚‚è©ŠèĄŒćŻèƒœă§ă™ăŒă€ こぼă‚čクăƒȘプトはメンテナンă‚čしどいăȘă„ăźă§éžæŽšć„šă§ă™ă€‚

Contributing

Welcome to contribute to this repository! For more details, please refer to CONTRIBUTING.md.

License

MIT