File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 2
2
set -e # Quit script on error
3
3
SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
4
4
5
+
5
6
# Build external dependencies
6
7
if [ " $1 " = " --without-aubio" ]; then
7
8
" ${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;
18
19
cp $f ${SCRIPT_DIR} /../../server/erlang/sonic_pi_server/priv/$( basename $f .dylib) .so
19
20
done
20
21
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
23
32
24
33
echo " Compiling native ruby extensions..."
25
34
ruby " ${SCRIPT_DIR} /../../server/ruby/bin/compile-extensions.rb"
You can’t perform that action at this time.
0 commit comments