Просмотр исходного кода

Create mac_setup.sh (#80)

* Create mac_setup.sh

* setyp.sh

* Update README.md
subs 4 лет назад
Родитель
Сommit
28699968d8
2 измененных файлов с 22 добавлено и 0 удалено
  1. 9 0
      README.md
  2. 13 0
      contrib/mac_setup.sh

+ 9 - 0
README.md

@@ -37,6 +37,15 @@ to install the required dependencies:
     libexpat1-dev
     libexpat1-dev
 ```
 ```
 
 
+Alternatively users can use the automated script in
+`contrib/mac_setup.sh` by running. This script will install brew
+if it does not already exists on the system and then automatically
+install the dependencies
+
+```shell
+% bash contrib/mac_setup.sh
+```
+
 To build the necessary binaries, we can just clone the repo, and use the 
 To build the necessary binaries, we can just clone the repo, and use the 
 provided Makefile to build the project. This will download the trusted 
 provided Makefile to build the project. This will download the trusted 
 setup params, and compile the source code.
 setup params, and compile the source code.

+ 13 - 0
contrib/mac_setup.sh

@@ -0,0 +1,13 @@
+#!/bin/bash
+
+if ! command -v brew &> /dev/null ; then
+   /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
+fi
+
+brew install cmake
+brew install gcc
+brew install jq
+brew install pkgconf
+brew install llvm@13
+brew install freetype
+brew install expat