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
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,3 +2,5 @@
|
||||
_*/
|
||||
bin/
|
||||
node_modules/
|
||||
*.zip
|
||||
push.sh
|
||||
|
22
LICENSE.md
22
LICENSE.md
@ -3,3 +3,25 @@ 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.
|
@ -1,2 +1,10 @@
|
||||
# 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
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: "
|
@ -19,7 +19,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/ocogeclub/ocoge#readme",
|
||||
"devDependencies": {
|
||||
"electron": "^11.1.1",
|
||||
"electron": "11.2.1",
|
||||
"electron-rebuild": "^2.3.4"
|
||||
},
|
||||
"dependencies": {
|
||||
|
Loading…
Reference in New Issue
Block a user