From 834908df9f891ad680821d2d33bbf9ed8c67b21d Mon Sep 17 00:00:00 2001 From: root Date: Sat, 6 Jun 2026 16:30:24 +0200 Subject: [PATCH] fix: always sync Gamedata configs from latest .example files --- update-Nitrov3.sh | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/update-Nitrov3.sh b/update-Nitrov3.sh index 0a0e8fb..13f5263 100755 --- a/update-Nitrov3.sh +++ b/update-Nitrov3.sh @@ -134,28 +134,22 @@ yarn build echo "--> Synchronizing Gamedata configurations..." mkdir -p "$GAMEDATA_CONF_DIR" -# --- Renderer Config Sync --- -if [ ! -f "$GAMEDATA_CONF_DIR/renderer-config.json" ] || [ "${NITRO_SRC_DIR}/renderer-config.example" -nt "$GAMEDATA_CONF_DIR/renderer-config.json" 2>/dev/null ]; then - if [ -f "$NITRO_SRC_DIR/renderer-config.example" ]; then - echo "--> Updating renderer-config.json from latest example..." - cp "$NITRO_SRC_DIR/renderer-config.example" "$GAMEDATA_CONF_DIR/renderer-config.json" - fi +# --- Renderer Config Sync (always from latest example) --- +if [ -f "$NITRO_SRC_DIR/renderer-config.example" ]; then + echo "--> Updating renderer-config.json from latest example..." + cp "$NITRO_SRC_DIR/renderer-config.example" "$GAMEDATA_CONF_DIR/renderer-config.json" fi -# --- UI Config Sync --- -if [ ! -f "$GAMEDATA_CONF_DIR/ui-config.json" ] || [ "${NITRO_SRC_DIR}/ui-config.json.example" -nt "$GAMEDATA_CONF_DIR/ui-config.json" 2>/dev/null ]; then - if [ -f "$NITRO_SRC_DIR/ui-config.json.example" ]; then - echo "--> Updating ui-config.json from latest example..." - cp "$NITRO_SRC_DIR/ui-config.json.example" "$GAMEDATA_CONF_DIR/ui-config.json" - fi +# --- UI Config Sync (always from latest example) --- +if [ -f "$NITRO_SRC_DIR/ui-config.json.example" ]; then + echo "--> Updating ui-config.json from latest example..." + cp "$NITRO_SRC_DIR/ui-config.json.example" "$GAMEDATA_CONF_DIR/ui-config.json" fi -# --- UITexts Sync --- -if [ ! -f "$GAMEDATA_CONF_DIR/UITexts.json5" ] || [ "${NITRO_SRC_DIR}/UITexts.json5.example" -nt "$GAMEDATA_CONF_DIR/UITexts.json5" 2>/dev/null ]; then - if [ -f "$NITRO_SRC_DIR/UITexts.json5.example" ]; then - echo "--> Updating UITexts.json5 from latest example..." - cp "$NITRO_SRC_DIR/UITexts.json5.example" "$GAMEDATA_CONF_DIR/UITexts.json5" - fi +# --- UITexts Sync (always from latest example) --- +if [ -f "$NITRO_SRC_DIR/UITexts.json5.example" ]; then + echo "--> Updating UITexts.json5 from latest example..." + cp "$NITRO_SRC_DIR/UITexts.json5.example" "$GAMEDATA_CONF_DIR/UITexts.json5" fi