-
Notifications
You must be signed in to change notification settings - Fork 1
/
buildserverdata.sh
executable file
·22 lines (16 loc) · 1.36 KB
/
buildserverdata.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
eval "$(head config.gradle -n12 | tail -n+3 | sed "s/ext\.//g")"
gameVersions=( "1.16.5" "1.17" "1.17.1" )
echo Building LiteCyan...
chmod +x gradlew buildlocal.sh
./gradlew -c settings.lite.gradle installLiteLibs || exit 1
./gradlew -PresetLibSourceCache processResources -PcurrentXML -PnoServer=true -PnoClient=true -PuncheckedClient=true -PmergeVersionManifests="build/Wrapper/serverdata/$cyanversion/versions.ccfg" -PaddChangeLog="$(cat change.log)" || exit 1
for ver in "${gameVersions[@]}"; do
echo Building for "$ver"...
echo Processing resources...
./gradlew -PcurrentXML -PnoServer=true -PnoClient=true -PuncheckedClient=true -PaddChangeLog="$(cat change.log)" -PmergeVersionManifests="build/Wrapper/serverdata/$cyanversion/versions.ccfg" -PoverrideGameVersion="$ver" processResources || exit 1
./gradlew -PcurrentXML -PnoServer=true -PnoClient=true -PuncheckedClient=true -PaddChangeLog="$(cat change.log)" -PmergeVersionManifests="build/Wrapper/serverdata/$cyanversion/versions.ccfg" -PoverrideGameVersion="$ver" processResources || exit 1
echo Building server data...
./gradlew -PcurrentXML -PnoServer=true -PnoClient=true -PuncheckedClient=true -PaddChangeLog="$(cat change.log)" -PmergeVersionManifests="build/Wrapper/serverdata/$cyanversion/versions.ccfg" -PoverrideGameVersion="$ver" serverDownloads || exit 1
echo
done