ソースを参照

Create mac_setup.sh (#80)

* Create mac_setup.sh

* setyp.sh

* Update README.md
subs 4 年 前
コミット
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
 ```
 
+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 
 provided Makefile to build the project. This will download the trusted 
 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