-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-arm64.sh
executable file
·51 lines (41 loc) · 1.48 KB
/
build-arm64.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/zsh
# macOS ARM64 build script
# make build directories and copy assets across
mkdir build
cp -r src/gui build/gui
cp -r src/icons build/icons
cp -r src/pd build/pd
mkdir build/pd/externals
cp src/python/formuls-0.2.3-beta.py build/formuls-0.2.3-beta.py
cp src/python/pyinstaller.py build/pyinstaller.py
# build faust pd externals
cd src/faust
faust2puredata f_digitaliser.dsp
faust2puredata f_limiter.dsp
faust2puredata f_repeater.dsp
faust2puredata f_reverb.dsp
faust2puredata formuls.dsp
mv *.pd_darwin ../../build/pd/externals
# build ableton link (abl_link~_) pd external
cd ../libs/abl_link/external
make
mv abl_link~.pd_darwin ../../../../build/pd/externals
# download open stage control and nodejs
cd ../../../gui
wget https://github.com/jean-emmanuel/open-stage-control/releases/download/v1.27.2/open-stage-control_1.27.2_node.zip
unzip open-stage-control_1.27.2_node.zip
cp -r open-stage-control_1.27.2_node ../../build/gui/open-stage-control
wget https://nodejs.org/dist/v18.12.1/node-v18.12.1-darwin-arm64.tar.gz
tar -xf node-v18.12.1-darwin-arm64.tar.gz
cp node-v18.12.1-darwin-arm64/bin/node ../../build/gui/node
# build libpd and formulsengine
cd ../
make
# run pyinstaller and build app bundle
cd ../build
python3 pyinstaller.py
cp -r icons dist/formuls-0.2.3-beta/_internal/icons
cp -r pd dist/formuls-0.2.3-beta/_internal/pd
cp -r gui dist/formuls-0.2.3-beta/_internal/gui
cp -r libs dist/formuls-0.2.3-beta/_internal/libs
cp -r dist/formuls-0.2.3-beta ../formuls-0.2.3-beta.app