-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup_mac.sh
43 lines (29 loc) · 1.34 KB
/
setup_mac.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env bash
# this script is intended to setup a mac from scratch to be able to develop or build autopkg recipes
# check xcode command line tools install:
# xcode-select --print-path
# install homebrew:
if [ ! -f /usr/local/bin/brew ] ; then
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/029184a90aecb8afff8b3ad56a2ea4f1be68cec6/install.sh)"
fi
# get brew to work on PATH
eval $(/opt/homebrew/bin/brew shellenv)
# NONINTERACTIVE=1 brew tap microsoft/git
NONINTERACTIVE=1 brew install --adopt [email protected] sevenzip msitools visual-studio-code libmagic jq git-credential-manager-core cairo libffi
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade setuptools build wheel
# if autopkg does not exist
if [ ! -f ../autopkg ] ; then
git clone https://github.com/autopkg/autopkg.git ../autopkg
fi
# if autopkg Library folder does not exist
if [ ! -f ~/Library/AutoPkg ] ; then
mkdir -p ~/Library/AutoPkg
fi
# mkdir -p ~/.config/Autopkg
# install autopkg requirements
python3 -m pip install --requirement ../autopkg/gh_actions_requirements.txt --user
# add required recipe repos for jgstew-recipes
for line in $(cat .autopkg_repos.txt); do python3 ../autopkg/Code/autopkg repo-add $line; done
# install jgstew-recipes requirements:
python3 -m pip install --requirement requirements.txt --user