mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-21 19:45:10 +00:00
7ffb98e896
Since the libraries for MacOS are now distinguishable between mac_arm and mac_intel, a minor change has been made to the script to place the compiled libjuice library to the appropriate folder, i.e. `mac_intel`.
21 lines
500 B
Bash
21 lines
500 B
Bash
#!/bin/bash
|
|
dl_ver=1.2.2
|
|
|
|
#Download
|
|
echo Downloading: libjuice
|
|
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_intel/libjuice.1.2.2.dylib
|
|
echo "
|
|
Copying: libjuice to 'lib/coopnet/mac_intel/'"
|
|
cp libjuice."$dl_ver".dylib ../../lib/coopnet/mac_intel/libjuice."$dl_ver".dylib
|
|
|
|
echo Done
|