diff --git a/.gitignore b/.gitignore index 3f2212b..dc3112a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,12 @@ -# # Git Ignore for Yaaic -# +# Compiled and generated files bin/ gen/ R.java # local ant properties local.properties + +# Config file for the build_release.sh script (Because everyone has a different version) +build.conf diff --git a/build.conf.sample b/build.conf.sample new file mode 100644 index 0000000..e33c9bb --- /dev/null +++ b/build.conf.sample @@ -0,0 +1,12 @@ +# The keystore file you use for the release +KEYSTORE= + +# The directory you want the builds to go +BUILD_DIRECTORY=builds/ant + +# The key of the keystore you want to use to sign the release +RELEASE_KEY= + +# The path to your Android SDK +ANDROID_SDK= + diff --git a/build_release.sh b/build_release.sh index b5a9221..b4343f0 100755 --- a/build_release.sh +++ b/build_release.sh @@ -1,7 +1,15 @@ -KEYSTORE= -BUILD_DIRECTORY=builds/ant -RELEASE_KEY= -ANDROID_SDK= +#### +# Build a new release +# +# - Modify build.conf as needed +# - Usage: ./build_release.sh + +if [ ! -f build.conf ] + echo "Config file missing: build.conf" + echo "Modify the build.conf.sample file and save it as build.conf" +fi + +. build.conf if [ -z $1 ]; then echo "Release version is missing."