Permalink
Browse files

now supporting linux for install scripts

  • Loading branch information...
1 parent ae3b23e commit 8600c138a60f22b5e5b857d730d5038e88febb06 Daniel Ribeiro committed Apr 16, 2012
Showing with 19 additions and 4 deletions.
  1. +6 −2 release.sh
  2. +3 −0 setup_scripts/dev_install.sh
  3. +5 −1 setup_scripts/install_modloader.sh
  4. +5 −1 setup_scripts/setup.sh
View
@@ -1,8 +1,12 @@
#!/usr/bin/env bash
set -e
-minecraft_path="$HOME/Library/Application Support/minecraft"
+if [ 'Linux' = `uname -s` ]
+then minecraft_path="$HOME/.minecraft"
+else
+ minecraft_path="$HOME/Library/Application Support/minecraft"
+fi
-echo "-> Releasing mod"
+echo "-> Releasing mod to your minecraft folder"
cp bin/*.jar "$minecraft_path/mods/"
cp java/* minecraft_modding/src/minecraft/net/minecraft/src/
cd minecraft_modding
@@ -5,3 +5,6 @@ cd ~
git clone git://github.com/danielribeiro/conjcraft.git
cd conjcraft
setup_scripts/setup.sh
+
+echo == Conjcraft development environment installed ==
+./run_tests.sh
@@ -1,6 +1,10 @@
#!/usr/bin/env bash
-minecraft_path="$HOME/Library/Application Support/minecraft"
modloader_url=http://dl.dropbox.com/u/20629262/Latest/ModLoader.zip
+if [ 'Linux' = `uname -s` ]
+then minecraft_path="$HOME/.minecraft"
+else
+ minecraft_path="$HOME/Library/Application Support/minecraft"
+fi
echo "-> Installing modloader"
cd "$minecraft_path"
@@ -1,8 +1,12 @@
#!/usr/bin/env bash
modpath=~/conjcraft/minecraft_modding
-minecraft_path="$HOME/Library/Application Support/minecraft"
mcp_url=http://mcp.ocean-labs.de/files/mcp62.zip
modloader_url=http://dl.dropbox.com/u/20629262/Latest/ModLoader.zip
+if [ 'Linux' = `uname -s` ]
+then minecraft_path="$HOME/.minecraft"
+else
+ minecraft_path="$HOME/Library/Application Support/minecraft"
+fi
echo "-> Installing and configuring MCP"
cd ~

0 comments on commit 8600c13

Please sign in to comment.