Rework island water and shop character
This commit is contained in:
parent
0d50c324e9
commit
352350157b
65 changed files with 1144 additions and 1120 deletions
|
|
@ -5,15 +5,26 @@ set -euo pipefail
|
|||
readonly SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
|
||||
readonly PROJECT_ROOT="$(cd -- "${SCRIPT_DIR}/.." && pwd)"
|
||||
readonly GODOT_BIN="${GODOT_BIN:-godot}"
|
||||
readonly ROOT_PATH="${1:-res://}"
|
||||
|
||||
if [[ $# -ne 1 ]]; then
|
||||
echo "usage: scripts/normalize_texture_profiles.sh res://path/to/textures" >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
readonly ROOT_PATH="$1"
|
||||
|
||||
readonly WORK_ROOT="$(mktemp -d -t netfishing-godot-data.XXXXXX)"
|
||||
trap 'rm -rf -- "${WORK_ROOT}"' EXIT
|
||||
|
||||
cd "${PROJECT_ROOT}"
|
||||
|
||||
XDG_DATA_HOME="${WORK_ROOT}/data" \
|
||||
XDG_CONFIG_HOME="${WORK_ROOT}/config" \
|
||||
XDG_CACHE_HOME="${WORK_ROOT}/cache" \
|
||||
${GODOT_BIN} --headless --path . \
|
||||
--script scripts/normalize_texture_imports.gd -- --apply --root "${ROOT_PATH}"
|
||||
export XDG_DATA_HOME="${WORK_ROOT}/data"
|
||||
export XDG_CONFIG_HOME="${WORK_ROOT}/config"
|
||||
export XDG_CACHE_HOME="${WORK_ROOT}/cache"
|
||||
|
||||
"${GODOT_BIN}" --headless --path . \
|
||||
--script scripts/normalize_texture_imports.gd -- --apply --root "${ROOT_PATH}"
|
||||
|
||||
# Synchronize Godot-generated remap and destination metadata with the updated
|
||||
# import parameters before the caller reviews or commits the sidecars.
|
||||
"${GODOT_BIN}" --headless --path . --import
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue