daily update
@ -1 +1,4 @@
|
||||
Latest version of Arduino IDE. Not outdated like the repository's Arduino IDE.
|
||||
Use this to flash your code to Arduino microprocessors.
|
||||
To run: Menu -> Programming -> Arduino IDE.
|
||||
To run in a terminal: /home/pi/arduino-1.8.13/arduino
|
||||
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.5 KiB |
@ -0,0 +1,3 @@
|
||||
Minecraft Java edition for the raspberry pi
|
||||
Run with the menu bar shortcuut or with "java -jar /usr/share/minecraftjava/launcher.jar"
|
||||
This installs the old Minecraft launcher so that MC can be launched properly with any version and Optifine.
|
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 8.1 KiB |
@ -0,0 +1,37 @@
|
||||
#!/bin/bash
|
||||
|
||||
DIRECTORY="$(dirname "$(dirname "$(dirname "$0")")")"
|
||||
function error {
|
||||
echo -e "\e[31m$1\e[39m"
|
||||
exit 1
|
||||
}
|
||||
|
||||
#use the error function often!
|
||||
#If a certain command is necessary for installation to continue, then add this to the end of it:
|
||||
# || error 'reason'
|
||||
#example below:
|
||||
|
||||
#Download java and launcher
|
||||
mkdir ~/Minecraft && cd ~/Minecraft && wget https://www.dropbox.com/s/2602i5d0h4kteex/setupMC.sh && chmod +x setupMC.sh && ./setupMC.sh || error 'Failed to download launcher!'
|
||||
|
||||
#Move launcher to /usr/share/
|
||||
sudo mkdir /usr/share/minecraftjava && sudo mv launcher.jar /usr/share/minecraftjava/launcher.jar
|
||||
|
||||
#Create desktop shortcut
|
||||
echo "[Desktop Entry]
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Name=Minecraft Launcher
|
||||
Comment=3D block based sandbox game
|
||||
Icon=/home/pi/pi-apps/apps/Minecraft\ \(Experimental\)/icon-64.png
|
||||
Exec=java -jar /usr/share/minecraftjava/launcher.jar
|
||||
Categories=Game;" > ~/.local/share/applications/minecraft.desktop
|
||||
|
||||
sudo chmod +x ~/.local/share/applications/minecraft.desktop
|
||||
|
||||
#Edit launcher profile
|
||||
echo ''
|
||||
echo 'This step requires manual work'
|
||||
echo 'The luancher will now open. Please log in and follow the instructions at https://www.noxxtech.tk/minecraft-install#h.fpnon3xvmuoz'
|
||||
java -jar /usr/share/minecraftjava/launcher.jar
|
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
DIRECTORY="$(dirname "$(dirname "$(dirname "$0")")")"
|
||||
function error {
|
||||
echo -e "\e[31m$1\e[39m"
|
||||
exit 1
|
||||
}
|
||||
|
||||
sudo rm ~/.local/share/applications/minecraft.desktop
|
||||
sudo rm -r ~/.minecraft
|
||||
sudo rm -r ~/Minecraft
|
||||
sudo rm -r ~/lwjgl2arm32
|
||||
sudo rm -r ~/lwjgl3arm32
|
||||
sudo rm -r ~/lwjgl3arm64
|
||||
sudo rm -r ~/lwjgl2arm64
|
||||
sudo rm -r /usr/share/minecraftjava/
|
@ -0,0 +1 @@
|
||||
https://www.noxxtech.tk/minecraft-install
|
@ -0,0 +1,3 @@
|
||||
Minecraft Java edition for the raspberry pi
|
||||
Run with the menu bar shortcuut or with "java -jar /usr/share/minecraftjava/launcher.jar"
|
||||
This installs the old Minecraft launcher so that MC can be launched properly with any version and Optifine.
|
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 8.1 KiB |
@ -0,0 +1,31 @@
|
||||
#!/bin/bash
|
||||
|
||||
DIRECTORY="$(dirname "$(dirname "$(dirname "$0")")")"
|
||||
function error {
|
||||
echo -e "\e[31m$1\e[39m"
|
||||
exit 1
|
||||
}
|
||||
|
||||
#use the error function often!
|
||||
#If a certain command is necessary for installation to continue, then add this to the end of it:
|
||||
# || error 'reason'
|
||||
#example below:
|
||||
|
||||
#Download java and launcher
|
||||
mkdir ~/Minecraft && cd ~/Minecraft && wget https://www.dropbox.com/s/2602i5d0h4kteex/setupMC.sh && chmod +x setupMC.sh && ./setupMC.sh || error 'Failed to download launcher!'
|
||||
|
||||
#Move launcher to /usr/share/
|
||||
sudo mkdir /usr/share/minecraftjava && sudo mv launcher.jar /usr/share/minecraftjava/launcher.jar
|
||||
|
||||
#Create desktop shortcut
|
||||
cd ~/.local/share/applications/
|
||||
wget https://raw.githubusercontent.com/mobilegmYT/pi-apps-resources/main/Minecraft/minecraft.desktop
|
||||
cd
|
||||
|
||||
sudo chmod +x ~/.local/share/applications/minecraft.desktop
|
||||
|
||||
#Edit launcher profile
|
||||
echo ''
|
||||
echo 'This step requires manual work'
|
||||
echo 'The luancher will now open. Please log in to the launcher with your MC account and follow the instructions at https://www.noxxtech.tk/minecraft-install#h.fpnon3xvmuoz'
|
||||
java -jar /usr/share/minecraftjava/launcher.jar
|
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
DIRECTORY="$(dirname "$(dirname "$(dirname "$0")")")"
|
||||
function error {
|
||||
echo -e "\e[31m$1\e[39m"
|
||||
exit 1
|
||||
}
|
||||
|
||||
sudo rm -f ~/.local/share/applications/minecraft.desktop
|
||||
sudo rm -rf ~/.minecraft
|
||||
sudo rm -rf ~/Minecraft
|
||||
sudo rm -rf ~/lwjgl2arm32
|
||||
sudo rm -rf ~/lwjgl3arm32
|
||||
sudo rm -rf ~/lwjgl3arm64
|
||||
sudo rm -rf ~/lwjgl2arm64
|
||||
sudo rm -rf /usr/share/minecraftjava/
|
@ -0,0 +1 @@
|
||||
https://www.noxxtech.tk/minecraft-install
|
After Width: | Height: | Size: 363 B |
@ -0,0 +1,69 @@
|
||||
#!/bin/bash
|
||||
DIRECTORY="$(readlink -f "$(dirname "$0")")"
|
||||
|
||||
function error {
|
||||
echo -e "\e[91m$1\e[39m"
|
||||
exit 1
|
||||
}
|
||||
|
||||
#ensure settings dir exists
|
||||
mkdir -p "${DIRECTORY}/data/settings"
|
||||
|
||||
settings='show-edit-button
|
||||
update-always
|
||||
reinstall-after-update
|
||||
'
|
||||
|
||||
tooltips='When viewing an App'\''s details, display an Edit button. Beware that updating will revert your edits.
|
||||
Instead of checking for updates once a day, do an update check every time you launch Pi-Apps.
|
||||
Before an update, the app will be uninstalled. If the app was installed oiginally, then install the new version automatically.
|
||||
'
|
||||
line=1
|
||||
for i in $settings
|
||||
do
|
||||
if [ -f "${DIRECTORY}/data/settings/${i}" ];then
|
||||
truefalse='true'
|
||||
else
|
||||
truefalse='false'
|
||||
fi
|
||||
LIST="${LIST}${truefalse}
|
||||
$(echo "$settings" | sed -n "${line}p" )
|
||||
$(echo "$tooltips" | sed -n "${line}p" )
|
||||
"
|
||||
line=$((line+1))
|
||||
done
|
||||
LIST="${LIST::-1}"
|
||||
#echo "LIST: ${LIST}EOL"
|
||||
|
||||
output="$(echo -e "$LIST" | yad --center --title='Pi-Apps Settings' --width=310 --height=300 --no-headers \
|
||||
--list --checklist --separator='\n' --window-icon="${DIRECTORY}/icons/logo.png" \
|
||||
--column=:CHK --column=Name --column=tip:HD --tooltip-column=3 --print-column=2 \
|
||||
--button='Create App':"${DIRECTORY}/createapp" \
|
||||
--button=Cancel!"${DIRECTORY}/icons/exit.png":1 \
|
||||
--button=Save!"${DIRECTORY}/icons/check.png":0 \
|
||||
2>/dev/null)"
|
||||
|
||||
button=$? #get exit code to determine which button was pressed
|
||||
#exit if save was not clicked
|
||||
[ $button -ne 0 ]&&exit 0
|
||||
|
||||
#reformat output var. Only lists items that have been enabled.
|
||||
output="$(echo "$output" | sed '/^$/d')
|
||||
"
|
||||
|
||||
echo "Output: ${output}EOO"
|
||||
|
||||
for i in $settings
|
||||
do
|
||||
#if output matches current setting
|
||||
if [ ! -z "$(echo "$output" | grep -x "$i")" ];then
|
||||
echo "$i is enabled"
|
||||
#create file
|
||||
echo '' > "${DIRECTORY}/data/settings/${i}"
|
||||
else
|
||||
echo "$i is disabled"
|
||||
#delete file
|
||||
rm -f "${DIRECTORY}/data/settings/${i}"
|
||||
fi
|
||||
done
|
||||
|
@ -1 +0,0 @@
|
||||
Subproject commit 6144ff17a9dd1afc4fa8258e8f60df0f61f91d0e
|