Skip to content

Commit

Permalink
now supporting linux for install scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Ribeiro committed Apr 16, 2012
1 parent ae3b23e commit 8600c13
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
8 changes: 6 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions setup_scripts/dev_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 5 additions & 1 deletion setup_scripts/install_modloader.sh
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 5 additions & 1 deletion setup_scripts/setup.sh
Original file line number Diff line number Diff line change
@@ -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 ~
Expand Down

0 comments on commit 8600c13

Please sign in to comment.