mirror of
https://github.com/ocogeclub/ocoge.git
synced 2024-11-21 23:29:48 +00:00
add installer
This commit is contained in:
parent
d8b1f5b47d
commit
8dce73bac5
10
.gitignore
vendored
10
.gitignore
vendored
@ -1,4 +1,6 @@
|
|||||||
.*/
|
.*/
|
||||||
_*/
|
_*/
|
||||||
bin/
|
bin/
|
||||||
node_modules/
|
node_modules/
|
||||||
|
*.zip
|
||||||
|
push.sh
|
||||||
|
32
LICENSE.md
32
LICENSE.md
@ -1,5 +1,27 @@
|
|||||||
Google/Blockly is licensed under Apache License (Version 2.0).
|
Google/Blockly is licensed under Apache License (Version 2.0).
|
||||||
|
|
||||||
Microsoft/pxt-blockly is licensed under MIT.
|
Microsoft/pxt-blockly is licensed under MIT.
|
||||||
|
|
||||||
ocoge 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.
|
12
README.md
12
README.md
@ -1,2 +1,10 @@
|
|||||||
# ocoge
|
# ocoge
|
||||||
"大岩産 Code Generator" は、Google Blockly ライブラリを使用した、Raspberry Pi 上で動作するブロックプログラム開発・実行環境です。
|
"大岩産 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
1485
installer/files/n
Normal file
File diff suppressed because it is too large
Load Diff
13
installer/files/share/applications/ocoge.desktop
Normal file
13
installer/files/share/applications/ocoge.desktop
Normal 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
|
||||||
|
|
BIN
installer/files/share/icons/hicolor/48x48/apps/ocoge.png
Normal file
BIN
installer/files/share/icons/hicolor/48x48/apps/ocoge.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.1 KiB |
24
installer/install.sh
Normal file
24
installer/install.sh
Normal 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: "
|
58
package.json
58
package.json
@ -1,30 +1,30 @@
|
|||||||
{
|
{
|
||||||
"name": "ocoge",
|
"name": "ocoge",
|
||||||
"version": "0.1.2",
|
"version": "0.1.2",
|
||||||
"description": "\"大岩産 Code Generator\" は、Google Blockly ライブラリを使用した、Raspberry Pi 上で動作するブロックプログラム開発・実行環境です。",
|
"description": "\"大岩産 Code Generator\" は、Google Blockly ライブラリを使用した、Raspberry Pi 上で動作するブロックプログラム開発・実行環境です。",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "electron .",
|
"start": "electron .",
|
||||||
"postinstall": "electron-rebuild"
|
"postinstall": "electron-rebuild"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/ocogeclub/ocoge.git"
|
"url": "git+https://github.com/ocogeclub/ocoge.git"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/ocogeclub/ocoge/issues"
|
"url": "https://github.com/ocogeclub/ocoge/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/ocogeclub/ocoge#readme",
|
"homepage": "https://github.com/ocogeclub/ocoge#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"electron": "^11.1.1",
|
"electron": "11.2.1",
|
||||||
"electron-rebuild": "^2.3.4"
|
"electron-rebuild": "^2.3.4"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^0.21.1",
|
"axios": "^0.21.1",
|
||||||
"nodemailer": "^6.4.17",
|
"nodemailer": "^6.4.17",
|
||||||
"ocoge_pigpiod": "file:local_modules/ocoge_pigpiod"
|
"ocoge_pigpiod": "file:local_modules/ocoge_pigpiod"
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user