Stamp version into texture_pack.conf

This commit is contained in:
Hugues Ross 2019-07-21 07:43:55 -04:00
parent 84ae00ff54
commit 4473577486
3 changed files with 3 additions and 3 deletions

View File

@ -23,13 +23,11 @@ mkdir -p "${EXPORT_DIR}"
# Create screenshot.png from source
screenshot_file="screenshot.tiff"
echo "Export ${screenshot_file}..."
#TODO: Overlay version number
#TODO: Generate the image?
convert "${screenshot_file}" -flatten "${EXPORT_DIR}/screenshot.png" || { echo "Failed to export ${1}"; exit 1; }
# Copy texture pack files
echo "Copy text files..."
#TODO: Assign versioning information
copyExport "CHANGELOG.md"
copyExport "LICENSE.txt"
copyExport "override.txt"

View File

@ -14,3 +14,6 @@ convert "${EXPORT_DIR}/screenshot.png" \
-gravity southeast -fill "#696b7f" -font "DejaVu-Serif" -annotate -1-0 "${1}"\
-gravity southeast -fill "#b9b5c5" -font "DejaVu-Serif" -annotate 0 "${1}"\
"${EXPORT_DIR}/screenshot.png" || { echo "Failed to stamp versioning info onto ${EXPORT_DIR}/screenshot.png"; exit 1; }
# Stamp the provided version number into the texture_pack.conf
echo "release = ${1}" >> "${EXPORT_DIR}/texture_pack.conf"

View File

@ -2,4 +2,3 @@ title = RPG16
name = rpg16
author = Hugues Ross
description = 16px - A simple texturepack reminiscent of classic RPGs. Currently supports Minetest Game.
release = 1