-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/gnembon/carpetmod
- Loading branch information
Showing
5 changed files
with
107 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
# For debug: Print commands and their arguments as they are executed. | ||
#set -x | ||
|
||
# Some colors for bash | ||
RED='\033[0;31m' | ||
NOCOLOR='\033[0m' | ||
|
||
if [[ ! -f ../build/distributions/carpetmod_1.13.2_Client.zip ]]; then | ||
printf "${RED}Patches missing, create them with /gradlew createRelease" | ||
exit 1 | ||
fi | ||
if [[ ! -f ../build/distributions/carpetmod_1.13.2_Server.zip ]]; then | ||
printf "${RED}Patches missing, create them with /gradlew createRelease" | ||
exit 1 | ||
fi | ||
|
||
[[ -d output-ux ]] && rm -rf output-ux | ||
mkdir output-ux | ||
|
||
printf "${NOCOLOR}Copying files ...\n" | ||
cp ../build/distributions/carpetmod_1.13.2_Client.zip output-ux | ||
cp ../build/distributions/carpetmod_1.13.2_Server.zip output-ux | ||
cp unix_install_server.sh output-ux | ||
cp unix_install_singleplayer.sh output-ux | ||
cp README.txt output-ux | ||
|
||
echo "Zipping ..." | ||
[[ -f carpet_package_ux.zip ]] && rm -f carpet_package_ux.zip | ||
pushd output-ux > /dev/null | ||
tar czf ../carpet_package_ux.tar.gz * | ||
popd > /dev/null | ||
|
||
echo "Cleaning ..." | ||
rm -rf output-ux |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
# For debug: Print commands and their arguments as they are executed. | ||
#set -x | ||
|
||
# Some colors for bash | ||
RED='\033[0;31m' | ||
NOCOLOR='\033[0m' | ||
|
||
if [[ ! -f ../build/distributions/carpetmod_1.13.2_Client.zip ]]; then | ||
echo "${RED}Patches missing, create them with /gradlew createRelease" | ||
exit 1 | ||
fi | ||
if [[ ! -f ../build/distributions/carpetmod_1.13.2_Server.zip ]]; then | ||
echo "${RED}Patches missing, create them with /gradlew createRelease" | ||
exit 1 | ||
fi | ||
|
||
[[ -d output-win ]] && rm -rf output-win | ||
mkdir output-win | ||
|
||
echo "${NOCOLOR}Copying files ..." | ||
cp ../build/distributions/carpetmod_1.13.2_Client.zip output-win | ||
cp ../build/distributions/carpetmod_1.13.2_Server.zip output-win | ||
cp 7za.exe output-win | ||
cp win_install_server.cmd output-win | ||
cp win_install_singleplayer.cmd output-win | ||
cp README.txt output-win | ||
|
||
echo "Zipping ..." | ||
[[ -f carpet_package_win.zip ]] && rm -f carpet_package_win.zip | ||
pushd output-win > /dev/null | ||
zip -r ../carpet_package_win.zip * > /dev/null | ||
popd > /dev/null | ||
|
||
echo "Cleaning ..." | ||
rm -rf output-win |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
|
||
# For debug: Print commands and their arguments as they are executed. | ||
# set -x | ||
|
||
# Some colors for bash | ||
RED='\033[0;31m' | ||
NOCOLOR='\033[0m' | ||
|
||
echo "Location server..." | ||
if [[ ! -f server.jar ]]; then | ||
printf "${RED}... cannot locate server jar, make sure its placed in current directory\n" | ||
echo " and its named like: server.jar" | ||
exit 1 | ||
fi | ||
|
||
cp server.jar ____server.jar | ||
printf "${NOCOLOR}Extracting patches ..." | ||
unzip carpetmod_1.13.2_Server.zip -d ____patches | ||
echo "Patching server ..." | ||
pushd ____patches > /dev/null | ||
zip -ur ../____server.jar * | ||
popd > /dev/null | ||
echo "Cleanup ..." | ||
rm -rf ____patches | ||
mv ____server.jar minecraft_server.1.13.2_carpet.jar | ||
echo "Done" |
This file contains 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
This file contains 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