-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some major changes: * version checker now checks against http://eln.ja13.org so that we can have our own version numbers * new build script for making builds have more details about how they were built. This will be useful in the upcoming analytics changes. * many hours wasted on Gradle configurations
- Loading branch information
Showing
11 changed files
with
159 additions
and
140 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
cd "$(dirname $0)" | ||
|
||
# remove old data from gradle.properties | ||
cp gradle.properties gradle.properties.back | ||
cat gradle.properties | grep -vE "BUILD_HOST|BUILD_DATE|JAVA_VERSION|GIT_REVISION" > gradle.properties.new | ||
mv gradle.properties.new gradle.properties | ||
|
||
# set variables in gradle.properties | ||
echo "" >> gradle.properties | ||
echo "BUILD_HOST = '$(hostname)'" >> gradle.properties | ||
echo "BUILD_DATE = '$(date)'" >> gradle.properties | ||
echo "JAVA_VERSION = '$(java -version 2>&1 | awk -F\" '/version/ {print $2}')'" >> gradle.properties | ||
echo "GIT_REVISION = '$(git log --pretty=format:'%H' -n 1)'" >> gradle.properties | ||
|
||
# build the game | ||
./gradlew setupDecompWorkspace | ||
./gradlew build | ||
|
||
mv gradle.properties.back gradle.properties |
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 |
---|---|---|
@@ -1,7 +1,13 @@ | ||
MAJORVERSION = 1 | ||
MINORVERSION = 14 | ||
REVISION = 2 | ||
MINORVERSION = 15 | ||
REVISION = 0 | ||
|
||
GROUP = 'net.electricalage.eln' | ||
ARCHIVE_NAME = 'ElectricalAge' | ||
MAPURL = 'https://github.com/Electrical-Age/ElectricalAge/releases/download/BETA-1.11r51/ElectricalAge_tutorial_map-BETA-1.11r51.zip' | ||
ARCHIVE_NAME = 'ElectricalAge-jrddunbr' | ||
MAPURL = 'https://eln.ja13.org/worlds/latest.zip' | ||
|
||
|
||
BUILD_HOST = 'unknown' | ||
BUILD_DATE = 'unknown' | ||
JAVA_VERSION = 'unknown' | ||
GIT_REVISION = 'unknown' |
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
Oops, something went wrong.