Last active
May 5, 2018 07:33
-
-
Save libook/6bf2d0952d1f325a41bc8b8bccdb4f3e to your computer and use it in GitHub Desktop.
Building Spigot, Bukkit and Craftbukkit server for Minecraft.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Use common shell. Or edit this for whatever shell you love. | |
# This is for building Spigot server for Minecraft game. | |
# This is a common script. You can use this directly, or customize for your own. | |
# Require Java 8+ and Git. | |
curl -z BuildTools.jar -o BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar && | |
java -jar BuildTools.jar | |
# Or add --dev for building development version Spigot: | |
# java -jar BuildTools.jar --dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Use common shell. Or edit this for whatever shell you love. | |
# This is for building Spigot server for Minecraft. | |
# This is a standalone script for Ubuntu. | |
# Test environment on Google Cloud Compute Engine: | |
# 2 CPU | |
# 7.5GB Memory | |
# Ubuntu 17.04 | |
# Use Oracle Java PPA. | |
sudo add-apt-repository -y ppa:webupd8team/java && | |
# Update software package cache. | |
sudo apt-get update && | |
# Install git for Spigot BuildTools. | |
sudo apt-get install -y git && | |
# Install tools for automatically installing Oracle Java. | |
# Replace python-software-properties with software-properties-common for new versions of Ubuntu. | |
sudo apt-get install -y python-software-properties debconf-utils && | |
# Configure tools for automatically installing Oracle Java. | |
echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections && | |
echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections && | |
# Install Oracle Java. | |
sudo apt-get -y install oracle-java8-installer && | |
# Download Spigot Build Tool. | |
curl -z BuildTools.jar -o BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar && | |
# Start building. | |
java -jar BuildTools.jar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment