You've already forked Atomcms-edit
fix: always sync Gamedata configs from latest .example files
This commit is contained in:
+12
-18
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user