Update RomM to v5.3.1

Co-authored-by: Kai Chappel <kaichappel@users.noreply.github.com>
Co-authored-by: nmfretz <nmfretz@gmail.com>
This commit is contained in:
authored and GitHub committed 2026-09-30 16:10:56 +10:00
1 parent b543a1e29d
commit 92e54389c2
4 files changed
+60 -15

No files matched your search

+2 -2
View File
@@ -40,5 +40,5 @@ system:
# Asociate one platform to it's main version
versions: {} # { naomi: 'arcade' }
# The folder name where your roms are located
filesystem: {} # { roms_folder: 'roms' } For example if your folder structure is /home/user/library/roms_folder
# The library layout is detected and migrated by the pre-start hook.
filesystem: {}
+1 -1
View File
@@ -9,7 +9,7 @@ services:
server:
user: "1000:1000"
image: rommapp/romm:5.2.0@sha256:3512f2ca455782f90247271bed23116e6bc675bc74e379be2c41696e607ab11e
image: rommapp/romm:5.3.1@sha256:0d66b4ea152a237c7f24b95e87459f46d3c596a7c0b35a82f26bc971487278b3
volumes:
- ${APP_DATA_DIR}/data/resources:/romm/resources
- ${APP_DATA_DIR}/data/redis:/redis-data
+49 -5
View File
@@ -3,12 +3,12 @@ set -euo pipefail
### Correct permissions for romm data directories
APP_DIR="$(readlink -f "$(dirname "${BASH_SOURCE[0]}")/..")"
APP_DATA_DIR="${APP_DIR}/data"
APP_DIR="${APP_DATA_DIR:-$(readlink -f "$(dirname "${BASH_SOURCE[0]}")/..")}"
DATA_DIR="${APP_DIR}/data"
DESIRED_OWNER="1000:1000"
CONFIG_DATA_DIR="${APP_DATA_DIR}/config"
CONFIG_DATA_DIR="${DATA_DIR}/config"
romm_correct_permission() {
local -r path="${1}"
@@ -73,8 +73,8 @@ system:
# Asociate one platform to it's main version
versions: {} # { naomi: 'arcade' }
# The folder name where your roms are located
filesystem: {} # { roms_folder: 'roms' } For example if your folder structure is /home/user/library/roms_folder
# The library layout is detected and migrated by the pre-start hook.
filesystem: {}
EOF
echo "Created romm configuration file."
@@ -82,3 +82,47 @@ echo "Created romm configuration file."
romm_correct_permission "${CONFIG_DATA_DIR}"
fi
# RomM 5.2 writes the retired folder keys whenever settings are saved in the UI.
# Migrate those configs as well as the original empty filesystem placeholder.
needs_migration="$(yq '
.filesystem.structure.default == null or
.filesystem.roms_folder != null or
.filesystem.firmware_folder != null
' "${ROMM_CONFIG_FILE}")"
if [[ "${needs_migration}" == "true" ]]; then
roms_folder="$(yq '.filesystem.roms_folder // "roms"' "${ROMM_CONFIG_FILE}")"
firmware_folder="$(yq '.filesystem.firmware_folder // "bios"' "${ROMM_CONFIG_FILE}")"
# Match RomM 5.2's detection: a top-level ROM folder takes precedence over
# platform/roms folders. An empty library starts with the top-level layout.
rom_structure="${roms_folder}/{platform}/{game}"
firmware_structure="${firmware_folder}/{platform}"
if [[ ! -d "${DATA_DIR}/library/${roms_folder}" ]]; then
for platform_roms in "${DATA_DIR}/library"/*/"${roms_folder}"; do
if [[ -d "${platform_roms}" ]]; then
rom_structure="{platform}/${roms_folder}/{game}"
firmware_structure="{platform}/${firmware_folder}"
break
fi
done
fi
tmp_file="$(mktemp "${CONFIG_DATA_DIR}/config.yml.XXXXXX")"
trap 'rm -f "${tmp_file}"' EXIT
# Preserve existing structure rules and unrelated settings. strenv keeps
# custom folder names as YAML strings without interpolating them into code.
ROMM_ROM_STRUCTURE="${rom_structure}" ROMM_FIRMWARE_STRUCTURE="${firmware_structure}" yq '
.filesystem.structure.default = (.filesystem.structure.default // strenv(ROMM_ROM_STRUCTURE)) |
.filesystem.structure.firmware = (.filesystem.structure.firmware // strenv(ROMM_FIRMWARE_STRUCTURE)) |
del(.filesystem.roms_folder, .filesystem.firmware_folder)
' "${ROMM_CONFIG_FILE}" > "${tmp_file}"
chmod --reference="${ROMM_CONFIG_FILE}" "${tmp_file}"
chown "${DESIRED_OWNER}" "${tmp_file}"
if [[ ! -e "${CONFIG_DATA_DIR}/config.yml.pre-5.3" ]]; then
cp -p "${ROMM_CONFIG_FILE}" "${CONFIG_DATA_DIR}/config.yml.pre-5.3"
fi
mv "${tmp_file}" "${ROMM_CONFIG_FILE}"
trap - EXIT
echo "Migrated RomM filesystem configuration for 5.3."
fi
+8 -7
View File
@@ -2,7 +2,7 @@ manifestVersion: 1.1
id: romm
category: media
name: RomM
version: "5.2.0"
version: "5.3.1"
tagline: A beautiful, powerful, self-hosted rom manager
description: >-
👾 RomM (ROM Manager) allows you to scan, enrich, browse and play your game collection with a clean and responsive interface.
@@ -36,17 +36,18 @@ path: ""
defaultUsername: ""
defaultPassword: ""
releaseNotes: >-
RomM 5.2 is a follow-up to the recent RomM 5.0 major update. If you're updating from a pre-5.0 version and share your library with other users, review permissions after upgrading.
RomM 5.3 replaces the old library folder settings with structure rules. This update migrates both previously supported library layouts and saved folder settings automatically, preserving other settings and backing up the original config. If you've customized emulator streaming, review RomM's 5.3 migration notes before upgrading.
Highlights include:
- Added reorderable region and language priority lists in scan settings
- Added provider ratings, searchable platform metadata, improved soundtrack artwork, and previous/next controls on game details
- Improved ScreenScraper pacing, scan reporting, home-page performance, resource caching, hashing, gallery updates, and metadata matching
- Fixed permission gaps found during the 5.1 audit, including state uploads, smart collection caching, file deletion grants, streaming endpoint permissions, and kiosk read-only access
- Added custom library structure rules with content-hashed ROM identity, so files can move while preserving saves, favorites, play history, and collections
- Reworked emulator streaming with per-container configuration, save-state sync, multi-disc support, and session management
- Added physical-game entries, barcode lookup support, walkthrough documents, and more metadata providers
- Improved metadata caching, gallery performance, ROM matching, and security handling for generated ZIP manifests
- Includes 5.3.1 security fixes for account sessions, access checks, and container packages, plus fixes for folder mappings and emulator streaming
If you're updating from a pre-4.9 version and manually enabled gamelist exports in config.yml, follow RomM's official config docs to update that setting: https://docs.romm.app/4.9.0/reference/configuration-file/#scangamelistexport
Full release notes can be found at https://github.com/rommapp/romm/releases/tag/5.2.0
Full release notes can be found at https://github.com/rommapp/romm/releases/tag/5.3.1