Added a shell-script for MacOS systems. (#403)

This commit adds a shell-script to the root folder. The script serves the purpose of downloading and compiling the source code of libjuice library, and copying it to the appropriate location. This script is only intended for MacOS.
This commit is contained in:
Motoo Chhotoo Chintoo 2023-06-01 13:19:43 +05:30 committed by GitHub
parent 05f4c42f81
commit fc195495c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 0 deletions

21
mac-intel-essential.sh Normal file
View File

@ -0,0 +1,21 @@
#!/bin/bash
#Download
echo Downloading: libjuice
dl_ver=1.2.2
curl -L https://github.com/paullouisageneau/libjuice/archive/refs/tags/v"$dl_ver".tar.gz -o libjuice.tar.gz
tar -xf libjuice.tar.gz
#Compilation
echo '
Compiling: libjuice'
cd libjuice-"$dl_ver"
cmake -B build && cd build
make -j2
#Copy to lib/coopnet/mac/libjuice.dylib
echo "
Copying: libjuice to 'lib/coopnet/mac'"
cp libjuice."$dl_ver".dylib ../../lib/coopnet/mac/libjuice."$dl_ver".dylib
echo Done