forked from Lcchy/Eyesy_for_fates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.sh
executable file
·30 lines (21 loc) · 898 Bytes
/
deploy.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
#!/bin/bash
set -ex
# Add nodejs Debian package as source.
# Note the need to allow releaseinfo changes. See https://askubuntu.com/questions/989906/explicitly-accept-change-for-ppa-label
curl -sL https://deb.nodesource.com/setup_14.x | sed -e 's/apt-get /apt-get --allow-releaseinfo-change /g' | sudo bash -
# Debian packages
sudo apt install -y python-pygame python-liblo python-alsaaudio python-pip nodejs
# Python packages
sudo pip install psutil cherrypy numpy JACK-Client
# Node packages
cd web/node && npm install && cd ../..
# Move service files into place and make sure perms are set correctly.
sudo chmod 644 systemd/*
sudo cp systemd/* /etc/systemd/system
# Move PD into place.
cp pd/externals/*.pd_linux ../../pdexternals
# Reload services.
sudo systemctl daemon-reload
# Put the Eyesy_Norns one folder up for a cleaner Sidekick menu
rm -rf ../Eyesy_Norns
cp -rf Eyesy_Norns ..