[minecraft-installer] 06/06: Added tests/minecraft-installer

Carlos Donizete Froes coringao-guest at moszumanska.debian.org
Sat Jul 1 18:17:58 UTC 2017


This is an automated email from the git hooks/post-receive script.

coringao-guest pushed a commit to branch master
in repository minecraft-installer.

commit 360c74fc1c87d6053c95c099bc9a35d4f76306a8
Author: Carlos Donizete Froes <coringao at riseup.net>
Date:   Sat Jul 1 15:17:25 2017 -0300

    Added tests/minecraft-installer
---
 debian/tests/minecraft-installer | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/debian/tests/minecraft-installer b/debian/tests/minecraft-installer
new file mode 100644
index 0000000..1328d35
--- /dev/null
+++ b/debian/tests/minecraft-installer
@@ -0,0 +1,23 @@
+#!/bin/sh
+#
+#	Copyright (C) 2017 Carlos Donizete Froes <coringao at riseup.net>
+#	Use of this script is governed by a BSD 2-clause license
+#	that can be found in the LICENSE file.
+#	Source code and contact info at https://github.com/coringao/minecraft-installer
+#
+set -e
+
+# Download official Minecraft/Mojang website
+LINK="https://s3.amazonaws.com/Minecraft.Download/launcher/Minecraft.jar"
+
+# Directory hidden
+GAME="$HOME/.minecraft/"
+
+# Temporary directory used by the script: its contents will be deleted
+if [ ! -d $GAME ]; then
+	mkdir -p $GAME
+	cd $GAME
+	wget -c -q $LINK
+fi
+
+# "END"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/minecraft-installer.git



More information about the Pkg-games-commits mailing list