Browse Source

improving installers and moving old installer

master
poikilos 7 years ago
committed by Jacob Gustafson
parent
commit
d6697bd2e0
  1. 15
      etc/install-zerobrane-directly-not-recommended
  2. 4
      etc/install-zerobrane-minetest-environment
  3. 9
      etc/minetestserver-install-git-all-backends.sh
  4. 1
      etc/minetestserver-uninstall-git-leftovers.sh
  5. 1
      etc/unused/minetestserver-install-git-ENABLE_REDIS

15
etc/install-zerobrane-directly-not-recommended

@ -0,0 +1,15 @@
#!/bin/bash
archive_name=ZeroBraneStudioEduPack-1.70-linux.sh
cd "$HOME"
if [ ! -d "Downloads" ]; then
mkdir Downloads
fi
cd Downloads
if [ ! -f "$archive_name" ]; then
wget -O $archive_name https://download.zerobrane.com/$archive_name
fi
sudo sh "$archive_name"
echo
echo "You can donate to the ZeroBrane Studio project at https://studio.zerobrane.com/support"
echo " (using that URL when linking to ZeroBrane Studio is most courteous to the project)."
echo

4
etc/install-zerobrane-minetest-environment

@ -1,7 +1,8 @@
#!/bin/bash
dls_path="$HOME/Downloads"
dl_name="MinetestIDEvers1(dot)0.zip"
dl_path="$dls_path/$dl_name"
if [ ! if "" ]; then
if [ ! -f "$dl_path" ]; then
echo "ERROR: Nothing done since you must first download $dl_name from"
echo " https://forum.minetest.net/viewtopic.php?f=14&t=12923"
echo " such that it exists as $dl_path"
@ -21,6 +22,7 @@ if [ -d "$try_path/api" ]; then
elif [ ! -d "$share_path" ]; then
echo "Neither $share_path nor $try_path was found."
echo " Make sure ZeroBrane is installed, or modify share_path in this script."
echo " https://studio.zerobrane.com/support"
echo "Press Ctrl C to cancel otherwise this terminal will exit..."
echo "3..."
sleep 1

9
etc/minetestserver-install-git-all-backends.sh

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#this is the recommended script for servers
#remove non-git version first:
if [ -f "`command -v apt`" ]; then
@ -7,7 +7,7 @@ fi
echo "This script compiles AND installs minetestserver (NOT run-in-place, but rather system-wide) with leveldb, redis, and defaults postgresql, doxygen, sqlite3"
echo
echo
echo "If you want to install the client on your server (not normal practice), change -DBUILD_CLIENT=FALSE to -DBUILD_CLIENT=TRUE before continuing this script."
echo "If you want to install the client on your server (not normal practice), add client or both param when calling this script."
echo "Removing the non-git (packaged) version first (Press Ctrl C to cancel)..."
sleep 1
echo "3..."
@ -66,8 +66,11 @@ if [ -d minetest ]; then
sleep 1
echo "1..."
sleep 1
#cd minetest
else
git clone https://github.com/minetest/minetest.git
fi
git clone https://github.com/minetest/minetest.git
#cd minetest
git pull --all # see https://forum.minetest.net/viewtopic.php?f=42&t=3837&start=125#p306449
cd minetest/games
if [ ! -d minetest_game ]; then

1
etc/minetestserver-uninstall-git-leftovers.sh

@ -1,3 +1,4 @@
#!/bin/bash
if [ ! -f "install_manifest.txt" ]; then
echo "missing install_manifest.txt, cannot uninstall unless you properly run cmake source and are running this script from the base repo directory"
exit 1

1
etc/minetestserver-install-git-ENABLE_REDIS → etc/unused/minetestserver-install-git-ENABLE_REDIS

@ -1,3 +1,4 @@
#!/bin/bash
#sudo apt-get install libncurses5-dev libgettextpo-dev doxygen libspatialindex-dev lua-redis-dev gettext
sudo apt-get install build-essential cmake git libirrlicht-dev libbz2-dev libgettextpo-dev libfreetype6-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libhiredis-dev libcurl3-dev
Loading…
Cancel
Save