[update] インストーラを廃止

This commit is contained in:
ocogeclub 2021-11-01 19:08:26 +09:00
parent 363538df9a
commit 481105d508
4 changed files with 10 additions and 60 deletions

20
.gitignore vendored
View File

@ -1,10 +1,10 @@
node_modules/ node_modules/
.shared/ .shared/
bin/ bin/
build/ build/
*.zip *.zip
push.sh push.sh
n n
*.bak *.bak
*.old *.old
lg/ *.lock

View File

@ -1,13 +0,0 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=
Comment= code generator
Path=/home/pi/Applications/ocoge
Exec=npm start
Icon=ocoge.png
Categories=Development;IDE;
Terminal=false
Encoding=UTF-8
StartupNotify=true

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

View File

@ -1,37 +0,0 @@
#!/bin/bash -x
# Usage: bash install.sh
NODEVER=16.5.0
#14.17.0
# Enable i2c bus 6 to use the pins NOT pulledup
# AE-AQM0802 can be used
echo 'dtoverlay=i2c6,pins_22_23' | sudo tee -a /boot/config.txt
# install some packages used in ocoge
sudo apt update
sudo apt install fswebcam -y
# enable pigpiod service
sudo systemctl enable pigpiod.service
sudo systemctl start pigpiod.service
# 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 $NODEVER
# install python code formatter
python3 -m pip install black
# 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
cd ..
npm install --legacy-peer-deps
echo 'Installation finished. To use i2c devices, reboot computer.'