add installer

This commit is contained in:
ocogeclub 2021-02-06 19:40:52 +09:00
parent d8b1f5b47d
commit 8dce73bac5
8 changed files with 1594 additions and 40 deletions

10
.gitignore vendored
View File

@ -1,4 +1,6 @@
.*/
_*/
bin/
node_modules/
.*/
_*/
bin/
node_modules/
*.zip
push.sh

View File

@ -1,5 +1,27 @@
Google/Blockly is licensed under Apache License (Version 2.0).
Microsoft/pxt-blockly is licensed under MIT.
ocoge is licensed under MIT.
Google/Blockly is licensed under Apache License (Version 2.0).
Microsoft/pxt-blockly is licensed under MIT.
ocoge is licensed under MIT.
MIT License
Copyright (c) 2021 ocoge club, Ueno Gakushujuku
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -1,2 +1,10 @@
# ocoge
"大岩産 Code Generator" は、Google Blockly ライブラリを使用した、Raspberry Pi 上で動作するブロックプログラム開発・実行環境です。
# ocoge
"大岩産 Code Generator" は、Google Blockly ライブラリを使用した、Raspberry Pi 上で動作するブロックプログラム開発・実行環境です。
### 免責
このアプリケーションは特定の環境下で使用する目的で、専門知識を持たない日曜プログラマによって無計画に開発されています。アドバイス・ご意見・ご要望は有難く承りますが、対応の保証はいたしかねます。
また、このアプリケーションを使用したことによるいかなる損害に関しても当方は一切の責任を負わないものとします。
### Disclaimer
This application has been unplannedly developed by a non-expert amateur programmer for use in specific environments. We appreciate your advice, opinions, and requests, but we cannot guarantee the response.
We do not take any responsibility for any damage caused by using this application.

1485
installer/files/n Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,13 @@
[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.

After

Width:  |  Height:  |  Size: 4.1 KiB

24
installer/install.sh Normal file
View File

@ -0,0 +1,24 @@
#!/bin/bash -x
# Usage: bash install.sh
# install node.js (=electron node version) via n (https://github.com/tj/n)
sudo bash ./files/n 12.18.3
# Install latest version of n via npm globally
sudo npm install -g n
# 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: "

View File

@ -1,30 +1,30 @@
{
"name": "ocoge",
"version": "0.1.2",
"description": "\"大岩産 Code Generator\" は、Google Blockly ライブラリを使用した、Raspberry Pi 上で動作するブロックプログラム開発・実行環境です。",
"main": "index.js",
"scripts": {
"start": "electron .",
"postinstall": "electron-rebuild"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ocogeclub/ocoge.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/ocogeclub/ocoge/issues"
},
"homepage": "https://github.com/ocogeclub/ocoge#readme",
"devDependencies": {
"electron": "^11.1.1",
"electron-rebuild": "^2.3.4"
},
"dependencies": {
"axios": "^0.21.1",
"nodemailer": "^6.4.17",
"ocoge_pigpiod": "file:local_modules/ocoge_pigpiod"
}
{
"name": "ocoge",
"version": "0.1.2",
"description": "\"大岩産 Code Generator\" は、Google Blockly ライブラリを使用した、Raspberry Pi 上で動作するブロックプログラム開発・実行環境です。",
"main": "index.js",
"scripts": {
"start": "electron .",
"postinstall": "electron-rebuild"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ocogeclub/ocoge.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/ocogeclub/ocoge/issues"
},
"homepage": "https://github.com/ocogeclub/ocoge#readme",
"devDependencies": {
"electron": "11.2.1",
"electron-rebuild": "^2.3.4"
},
"dependencies": {
"axios": "^0.21.1",
"nodemailer": "^6.4.17",
"ocoge_pigpiod": "file:local_modules/ocoge_pigpiod"
}
}