ocoge/installer/install.sh
2021-08-28 23:28:26 +09:00

28 lines
680 B
Bash

#!/bin/bash -x
# Usage: bash install.sh
# install node.js (=electron node version) via n (https://github.com/tj/n)
curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n
sudo bash n 14.16.0
# Install latest version of n via npm globally
# sudo npm install -g n
# install python code formatter
python3 -m pip install yapf
# install desktop entry
cp -r ./files/share ~/.local/
# install binary files if exists
FILE="./files/binary.zip"
if [ -e $FILE ]; then
unzip $FILE -d ..
else
echo 'binary.zip not found. plz install manually.'
fi
# build ocoge
# prepare for installation electron
echo 'arch=armv7l' > ~/.npmrc
cd ..
npm install
read -p "Press enter to exit: "