forked from CyR1en/Minecordbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
23 lines (21 loc) · 752 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env sh
# Simple script to automatically calls the gradle wrapper
# Benefits:
# * Allows the user to cancel the process (5s buffer)
# * Captures the terminal window on finish, allowing users to read through the build log.
# * Clears the terminal after it's completed.
echo "This script will attempt to build MineCordBot for you."
sleep 1s
echo "You have 5 seconds to cancel this script with CTRL+C before we start building."
sleep 5s
echo
echo "Starting to build MineCordBot."
sleep 1s
echo #Start the build script
sh gradlew.sh build
echo
echo "All done! If you had any errors, please check the documentation and/or report the issue on the Discord server."
echo
read -n 1 -s -p "Press any key to exit and clean up the screen"
clear
exit 0