Skip to content

Commit a9ba58c

Browse files
committed
Build - pull in prebuilt erlang and scsynth binaries on macOS during prebuild
1 parent 5a26a9d commit a9ba58c

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

app/gui/qt/mac-prebuild.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
set -e # Quit script on error
33
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
44

5+
56
# Build external dependencies
67
if [ "$1" = "--without-aubio" ]; then
78
"${SCRIPT_DIR}/external/mac_build_externals.sh"
@@ -18,8 +19,16 @@ for f in ${SCRIPT_DIR}/external/build/sp_midi-prefix/src/sp_midi-build/*.dylib;
1819
cp $f ${SCRIPT_DIR}/../../server/erlang/sonic_pi_server/priv/$(basename $f .dylib).so
1920
done
2021

21-
#dont remove ruby-aubio-prerelease, as needed in linux build
22-
#it is removed in the windows-prebuild
22+
23+
# Copy prebuilt native files to server
24+
echo "Copying prebuilt binaries to the server..."
25+
mkdir -p ${SCRIPT_DIR}/../../server/native/
26+
rm -rf ${SCRIPT_DIR}/../../server/native/supercollider
27+
rm -rf ${SCRIPT_DIR}/../../server/native/erlang
28+
rm -rf ${SCRIPT_DIR}/../../server/native/scsynth
29+
cp -R ${SCRIPT_DIR}/../../../prebuilt/macos/x64/* ${SCRIPT_DIR}/../../server/native/
30+
cd ${SCRIPT_DIR}/../../server/native/
31+
ln -s supercollider/scsynth scsynth
2332

2433
echo "Compiling native ruby extensions..."
2534
ruby "${SCRIPT_DIR}/../../server/ruby/bin/compile-extensions.rb"

0 commit comments

Comments
 (0)