diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3a667bbab..221fa51db 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,14 +41,14 @@ jobs: uses: docker/metadata-action@v4 with: images: | - name=zurdi15/romm - name=ghcr.io/zurdi15/romm + name=rommapp/romm + name=ghcr.io/rommapp/romm tags: | type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} labels: | org.opencontainers.image.version={{version}} - org.opencontainers.image.title="zurdi15/romm" + org.opencontainers.image.title="rommapp/romm" org.opencontainers.image.description="RomM (ROM Manager) allows you to scan, enrich, and browse your game collection with a clean and responsive interface. With support for multiple platforms, various naming schemes and custom tags, RomM is a must-have for anyone who plays on emulators." org.opencontainers.image.licenses="GPL-3.0" diff --git a/CHANGELOG.md b/CHANGELOG.md index 6eb32ac02..d0edfcf67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,87 @@ +# v3.0.3 (_25-03-2024_) + +## Fixed + - Removed ``PUID/GUID`` environment variables. Instead, use the ``user: "XXXX:XXXX"`` entry in docker-compose to set the owner of newly created file/folders and mounted volumes + +
+ +# v3.0.2 (_25-03-2024_) + +> [!WARNING] +> RomM has been organized in ``github`` and ``dockerhub``! New images will be upload to ``rommapp/romm`` repository on dockerhub and ghcr. + +## Added + - Famicon disk system to emulatorjs + - Allow setting PUID/GUID/UMASK with environment variables + - Re-added external redis support. You can now use an external redis instance with RomM by setting ``REDIS_HOST`` and ``REDIS_PORT`` in the env variables. If you have those variables currently set but want to use the internal one, you'll have to remove those them. + +## Changed + - Added scrolling to scan logs + - Disabled amiga emulator until bios support added + - Updated [docker-compose.example.yml file](https://github.com/rommapp/romm/blob/3.0.1/examples/docker-compose.example.yml) to match new dockerhub ``rommapp`` organization + +## Fixed + - Normalized IGDB search for better results + - Fixed player viewport to fit screen better + - Fixed safari downloads file names + +
+ +# v3.0.1 (_13-03-2024_) + +> [!WARNING] +> This hotfix requires a few changes: + +* A new volume has to be bound to `/redis-data`, check the [docker-compose.example.yml file](https://github.com/rommapp/romm/blob/3.0.1/examples/docker-compose.example.yml) +* If you're seeing "Decompress Game Core" when trying to run games in EmulatorJS, you'll need to clear storage in your browser to clear IndexedDB + +## Fixed + - Fix for integrated redis data persist. Check the [docker-compose.example.yml](https://github.com/rommapp/romm/blob/3.0.1/examples/docker-compose.example.yml) + - Fixed emulatorjs integration. Fixes #695 + - Fixed 404 for assets endpoint + - Fixed sqlite to mariadb migration + - Fixed async tasks not running and throwing errors + - Fixed sqlite to mariadb migration. Fixes #697 and #688 + - Fixed multipart game selector when change between games + +
+ +# v3.0.0 (_11-03-2024_) + +## Hightlights + - [EmulatorJS player](https://github.com/rommapp/romm/wiki/EmulatorJS-Player): Play retro games in your web browser + - Saves and states: Upload/downlaod game saves, and play them with EmulatorJS + - More metadata: Extracts more information from IGDB, like release date, genres, related games, etc. + - New license: Now licensed under AGPL-3.0 to promote community contributions + + +## New features + - Manually trigger async tasks from the UI + - New /stats endpoint to get library statistics + - Multi-file roms now download with .m3u file + - Small banner in UI when new version is available + - Manual search now also checks alternative names + + +## Other changes +- Redis is now built into the image + - Dropped support for build-in SQLite database + - Faster search against IGDB API with better results + - New covers when game or cover art not found + - Improved build process and release tagging + - Improved error handling and logging + + +## Fixed + - Validation is run on config.yml file to ensure compatibility + - Fix downloading single file from multi-file roms + - Fix compressing large files for download + - Reworked the authetication system to reduce CSRF and login issues + - Reconnect websockets on page reload to catch scan progress + - Many other small bug fixes and improvements + +
+ # v2.3.1 (_08-01-2024_) ## Fixed @@ -11,18 +95,18 @@ # v2.3.0 (_08-01-2024_) ## Added - - Now ``platforms`` can be ``deleted`` from the gallery. Closes [#567](https://github.com/zurdi15/romm/issues/567) - - Support for ``switch`` ``updates`` and ``DLC`` files. Closes [#554](https://github.com/zurdi15/romm/issues/554) + - Now ``platforms`` can be ``deleted`` from the gallery. Closes [#567](https://github.com/rommapp/romm/issues/567) + - Support for ``switch`` ``updates`` and ``DLC`` files. Closes [#554](https://github.com/rommapp/romm/issues/554) - Additional Webrcade resources by @Casuallynoted. - - ``Exclusions`` in ``config`` file now accepts ``wildcards``. Check the [config.example.yml](examples/config.example.yml). Closes [#575](https://github.com/zurdi15/romm/issues/575) + - ``Exclusions`` in ``config`` file now accepts ``wildcards``. Check the [config.example.yml](examples/config.example.yml). Closes [#575](https://github.com/rommapp/romm/issues/575) ## Fixed - ``Not identified`` games are no longer being grouped when ``group roms`` option is enabled. - - Changes in the ``config`` file from one to other platform are now more consistent. Closes [#567](https://github.com/zurdi15/romm/issues/567) + - Changes in the ``config`` file from one to other platform are now more consistent. Closes [#567](https://github.com/rommapp/romm/issues/567) - Some other minor fixes. ## Changed - - File extensions now can have up to ``100`` characters. Closes [#531](https://github.com/zurdi15/romm/issues/531) + - File extensions now can have up to ``100`` characters. Closes [#531](https://github.com/rommapp/romm/issues/531) - Now files without extension are skipped during scan by @bfenty. - Logs are now clearer. @@ -31,7 +115,7 @@ # v2.2.1 (_02-01-2024_) ## Added -- Added an option to group different regions of one game in the same entry in the ``Control Panel``. Closes [#404](https://github.com/zurdi15/romm/issues/404) +- Added an option to group different regions of one game in the same entry in the ``Control Panel``. Closes [#404](https://github.com/rommapp/romm/issues/404) ## Fixed - Fixed an error when scanning games with with ``ps2 opl``, ``switch titledb/productid`` or ``mame`` format. @@ -46,34 +130,34 @@ ## Added - Support for ``productID`` in the file name for ``switch`` titles. - - Rom name sorting now sorts smarter, avoiding leading articles such ``The`` or ``A``, like in ``The Legend of Zelda``. Closes [#449](https://github.com/zurdi15/romm/issues/449) and [#450](https://github.com/zurdi15/romm/issues/450) - - Support for file names with multiple ``regions`` and ``languages``. Also uses ``emojis`` to display them. Closes [#473](https://github.com/zurdi15/romm/issues/473) - - Added a button to manually ``run`` all tasks. Closes [#437](https://github.com/zurdi15/romm/issues/437) - - Now if a game doesn't have cover, it will show a screenshot if available. Closes [#455](https://github.com/zurdi15/romm/issues/455) + - Rom name sorting now sorts smarter, avoiding leading articles such ``The`` or ``A``, like in ``The Legend of Zelda``. Closes [#449](https://github.com/rommapp/romm/issues/449) and [#450](https://github.com/rommapp/romm/issues/450) + - Support for file names with multiple ``regions`` and ``languages``. Also uses ``emojis`` to display them. Closes [#473](https://github.com/rommapp/romm/issues/473) + - Added a button to manually ``run`` all tasks. Closes [#437](https://github.com/rommapp/romm/issues/437) + - Now if a game doesn't have cover, it will show a screenshot if available. Closes [#455](https://github.com/rommapp/romm/issues/455) - Added a little warning icon in the platform selector if the platform is not found by IGDB. - - Now if a platform is not found by IGDB, the platform name is ``titleized``. Ex: ``pocket-challenge-v2 -> Pocket Challenge V2``. Closes [#486](https://github.com/zurdi15/romm/issues/486) - - A lot more icons!. Complete list at [PR-488](https://github.com/zurdi15/romm/pull/488) and [PR-493](https://github.com/zurdi15/romm/pull/493) - - Support for support for AES/MVS. Closes [#503](https://github.com/zurdi15/romm/issues/503) + - Now if a platform is not found by IGDB, the platform name is ``titleized``. Ex: ``pocket-challenge-v2 -> Pocket Challenge V2``. Closes [#486](https://github.com/rommapp/romm/issues/486) + - A lot more icons!. Complete list at [PR-488](https://github.com/rommapp/romm/pull/488) and [PR-493](https://github.com/rommapp/romm/pull/493) + - Support for support for AES/MVS. Closes [#503](https://github.com/rommapp/romm/issues/503) - Added [Helm Chart](https://artifacthub.io/packages/helm/crystalnet/romm) to deploy on Kubernetes by @psych0d0g - - ``Rescan unidentified`` added to the scan view, allowing to rescan only those entries that IGDB couldn't identify in previous scans. Closes [#519](https://github.com/zurdi15/romm/issues/519) - - ``Config file`` visualization added to the new ``Config`` tab in the ``Control Panel``. Partially implements some concepts of [#457](https://github.com/zurdi15/romm/issues/457) + - ``Rescan unidentified`` added to the scan view, allowing to rescan only those entries that IGDB couldn't identify in previous scans. Closes [#519](https://github.com/rommapp/romm/issues/519) + - ``Config file`` visualization added to the new ``Config`` tab in the ``Control Panel``. Partially implements some concepts of [#457](https://github.com/rommapp/romm/issues/457) ## Fixed - - Now sorting by size in the gallery table view works as expected. Closes [#423](https://github.com/zurdi15/romm/issues/423) + - Now sorting by size in the gallery table view works as expected. Closes [#423](https://github.com/rommapp/romm/issues/423) - Now RomM is more responsive in more kind of devices. - - Cover sizes are now standarized to have a more consistent gallery. Closes [#340](https://github.com/zurdi15/romm/issues/340) + - Cover sizes are now standarized to have a more consistent gallery. Closes [#340](https://github.com/rommapp/romm/issues/340) - Improved detection for multiple extension files. - - Now the ``delete from filesystem`` checkbox is reseted when the ``delete`` dialog is closed. Closes [#466](https://github.com/zurdi15/romm/issues/466) - - Single file roms now are properly downloaded from backend, fixing a potential security issue. Closes [#471](https://github.com/zurdi15/romm/issues/471) - - Now a new ``scanned`` game appears directly in the gallery without refreshing. Closes [#467](https://github.com/zurdi15/romm/issues/467) + - Now the ``delete from filesystem`` checkbox is reseted when the ``delete`` dialog is closed. Closes [#466](https://github.com/rommapp/romm/issues/466) + - Single file roms now are properly downloaded from backend, fixing a potential security issue. Closes [#471](https://github.com/rommapp/romm/issues/471) + - Now a new ``scanned`` game appears directly in the gallery without refreshing. Closes [#467](https://github.com/rommapp/romm/issues/467) - A lot more of small fixes. - Now the default theme is setup properly. - - Fixed scan for custom folders from the ``scan`` view. Closes [#501](https://github.com/zurdi15/romm/issues/501) - - Fixed multi-part games download when any part of the game contains a ``comma`` in the name. Closes [#520](https://github.com/zurdi15/romm/issues/520) + - Fixed scan for custom folders from the ``scan`` view. Closes [#501](https://github.com/rommapp/romm/issues/501) + - Fixed multi-part games download when any part of the game contains a ``comma`` in the name. Closes [#520](https://github.com/rommapp/romm/issues/520) ## Changed - Improved the docker ``init scripts`` handling by @psych0d0g. - - Now the ``scan`` can continue after failing finding roms for one platform. Closes [#460](https://github.com/zurdi15/romm/issues/460) + - Now the ``scan`` can continue after failing finding roms for one platform. Closes [#460](https://github.com/rommapp/romm/issues/460) - Logs improved a lot.
@@ -82,38 +166,38 @@ ## Added - Added ``Scheduler`` to run scheduled scans and ``Watchdog`` to perform scans when adding/renamed/deleted any rom from the filesystem. Added a lot of new environment variables to configure both features. Check the [readme.md](README.md#📅-scheduler) for an explanation of how to configure them. - - Added new `REDIS_PASSWORD` environment variable to support secured redis with pasword. Closes [#412](https://github.com/zurdi15/romm/issues/412) - - New ``Recently Added`` section in the dashboard shows the last 15 added roms. Closes [#400](https://github.com/zurdi15/romm/issues/400) + - Added new `REDIS_PASSWORD` environment variable to support secured redis with pasword. Closes [#412](https://github.com/rommapp/romm/issues/412) + - New ``Recently Added`` section in the dashboard shows the last 15 added roms. Closes [#400](https://github.com/rommapp/romm/issues/400) ## Fixed - Upload rom feature is now working properly. - - Fixed order roms by size in the gallery list view. Fixes [#423](https://github.com/zurdi15/romm/issues/423) + - Fixed order roms by size in the gallery list view. Fixes [#423](https://github.com/rommapp/romm/issues/423) ## Changed - - Now platforms without roms will be hidden in the drawer and the dashboard. Closes [#396](https://github.com/zurdi15/romm/issues/396) + - Now platforms without roms will be hidden in the drawer and the dashboard. Closes [#396](https://github.com/rommapp/romm/issues/396)
# v2.0.1 (_29-10-2023_) ## Fixed - - Fixed an error that caused to show the wrong roms for one platform if user navigates directly to that platform from a rom details page. Fixes [#408](https://github.com/zurdi15/romm/issues/408) + - Fixed an error that caused to show the wrong roms for one platform if user navigates directly to that platform from a rom details page. Fixes [#408](https://github.com/rommapp/romm/issues/408)
# v2.0.0 (_27-10-2023_) ## Added - - User management system. Check the [docker-compose.example.yml](examples/docker-compose.example.yml) for all the needed changes and environment variables. Closes [#24](https://github.com/zurdi15/romm/issues/24) - - Gallery bulk selection. Closes [#50](https://github.com/zurdi15/romm/issues/50) + - User management system. Check the [docker-compose.example.yml](examples/docker-compose.example.yml) for all the needed changes and environment variables. Closes [#24](https://github.com/rommapp/romm/issues/24) + - Gallery bulk selection. Closes [#50](https://github.com/rommapp/romm/issues/50) - Roms upload feature. - Custom cover art. - - Custom name for `roms` folder throught the `ROMS_FOLDER_NAME` environment variable. Closes [#356](https://github.com/zurdi15/romm/issues/356) + - Custom name for `roms` folder throught the `ROMS_FOLDER_NAME` environment variable. Closes [#356](https://github.com/rommapp/romm/issues/356) - Added `IGDB_CLIENT_ID` and `IGDB_CLIENT_SECRET` as environment variables. `CLIENT_ID` and `CLIENT_ID` are deprecated and will be removed in future versions. - Added icons for more platforms: CD-i, 3DO, Neo Geo Pocket Color, Nintendo 64DD, Satellaview, Playdia, Pippin, Mac ## Fixed - - Fixed some checks before renaming a rom to avoid breaking names. Closes [#348](https://github.com/zurdi15/romm/issues/348) + - Fixed some checks before renaming a rom to avoid breaking names. Closes [#348](https://github.com/rommapp/romm/issues/348) - A lot of other minor bugs. ## Changed @@ -128,29 +212,27 @@ # v1.10 (_15-08-2023_) ## Added - - Rom admin menu added to roms in gallery. Closes [#28](https://github.com/zurdi15/romm/issues/28) - - Added ps2/opl naming convention support for roms scanning. Closes [#324](https://github.com/zurdi15/romm/issues/324) + - Rom admin menu added to roms in gallery. Closes [#28](https://github.com/rommapp/romm/issues/28) + - Added ps2/opl naming convention support for roms scanning. Closes [#324](https://github.com/rommapp/romm/issues/324) ## Fixed - - Fixed an error caused by the service worker that sometimes intercepts download requests and returns a bad response. Fixes [#297](https://github.com/zurdi15/romm/issues/297) - - Fixed rom count in platform selector when deleting/scanning roms. Fixes [#325](https://github.com/zurdi15/romm/issues/325) + - Fixed an error caused by the service worker that sometimes intercepts download requests and returns a bad response. Fixes [#297](https://github.com/rommapp/romm/issues/297) + - Fixed rom count in platform selector when deleting/scanning roms. Fixes [#325](https://github.com/rommapp/romm/issues/325) ## Changed - - Improved scanning and IGDB requests logs. Fixes [#317](https://github.com/zurdi15/romm/issues/317) - - Improved downloading process. Fixes [#332](https://github.com/zurdi15/romm/issues/332) - - + - Improved scanning and IGDB requests logs. Fixes [#317](https://github.com/rommapp/romm/issues/317) + - Improved downloading process. Fixes [#332](https://github.com/rommapp/romm/issues/332)
# v1.9.1 (_01-08-2023_) ## Added - - RomM logs are now stored in `/romm/logs` in docker and path can be binded in docker-compose. Check [docker-compose.example.yml](examples/docker-compose.example.yml). Solves [#303](https://github.com/zurdi15/romm/issues/303) + - RomM logs are now stored in `/romm/logs` in docker and path can be binded in docker-compose. Check [docker-compose.example.yml](examples/docker-compose.example.yml). Solves [#303](https://github.com/rommapp/romm/issues/303) ## Fixed - Fixed multipart roms scanning. - - Now platforms folders are case insensitive, allowing to have them lowercase or uppercase. Solves [#282](https://github.com/zurdi15/romm/issues/282) + - Now platforms folders are case insensitive, allowing to have them lowercase or uppercase. Solves [#282](https://github.com/rommapp/romm/issues/282) - Fixed a bug that caused the platforms drawer to dissapear after scan.
@@ -158,18 +240,18 @@ # v1.9 (_31-07-2023_) ## Added - - Region and revision system is now more robust and flexible. Solves [#301](https://github.com/zurdi15/romm/issues/301). Check [tags support](https://github.com/zurdi15/romm#-tags-support) + - Region and revision system is now more robust and flexible. Solves [#301](https://github.com/rommapp/romm/issues/301). Check [tags support](https://github.com/rommapp/romm#-tags-support) ## Fixed - - Libraries are now paginated to improve performance in large collections. Solves [#89](https://github.com/zurdi15/romm/issues/89) and [#280](https://github.com/zurdi15/romm/issues/280) - - Downloads are now managed in the backend, allowing the web browser to manage the download progression and avoiding memory overload. Solves [#266](https://github.com/zurdi15/romm/issues/266) + - Libraries are now paginated to improve performance in large collections. Solves [#89](https://github.com/rommapp/romm/issues/89) and [#280](https://github.com/rommapp/romm/issues/280) + - Downloads are now managed in the backend, allowing the web browser to manage the download progression and avoiding memory overload. Solves [#266](https://github.com/rommapp/romm/issues/266)
# v1.8.4 (_19-05-2023_) ## Fixed - - Fixed broken scan in multi part games. Solves [#262](https://github.com/zurdi15/romm/issues/262) + - Fixed broken scan in multi part games. Solves [#262](https://github.com/rommapp/romm/issues/262)
@@ -178,17 +260,17 @@ ## Added - Added platforms to home page. - Added the scan log in real time in the scan section. - - Added fast scan button in the gallery to direct scan the current platform. Solves [#250](https://github.com/zurdi15/romm/issues/250) - - Added Game and Watch support. Partially solves [#245](https://github.com/zurdi15/romm/issues/245) - - Added Amstrad CPC support. Partially solves [#245](https://github.com/zurdi15/romm/issues/245) - - Added Game and Gear support. Partially solves [#245](https://github.com/zurdi15/romm/issues/245) - - Added PC-98 support. Partially solves [#245](https://github.com/zurdi15/romm/issues/245) - - Added Pokemini support. Partially solves [#245](https://github.com/zurdi15/romm/issues/245) - - Added DOOM support. Partially solves [#245](https://github.com/zurdi15/romm/issues/245) + - Added fast scan button in the gallery to direct scan the current platform. Solves [#250](https://github.com/rommapp/romm/issues/250) + - Added Game and Watch support. Partially solves [#245](https://github.com/rommapp/romm/issues/245) + - Added Amstrad CPC support. Partially solves [#245](https://github.com/rommapp/romm/issues/245) + - Added Game and Gear support. Partially solves [#245](https://github.com/rommapp/romm/issues/245) + - Added PC-98 support. Partially solves [#245](https://github.com/rommapp/romm/issues/245) + - Added Pokemini support. Partially solves [#245](https://github.com/rommapp/romm/issues/245) + - Added DOOM support. Partially solves [#245](https://github.com/rommapp/romm/issues/245) ## Fixed - - Fixed a bug that caused scan to run twice. Solves [#221](https://github.com/zurdi15/romm/issues/221) - - Improved RomM initial setup logs for bad folder structure configurations. Solves [#217](https://github.com/zurdi15/romm/issues/217) + - Fixed a bug that caused scan to run twice. Solves [#221](https://github.com/rommapp/romm/issues/221) + - Improved RomM initial setup logs for bad folder structure configurations. Solves [#217](https://github.com/rommapp/romm/issues/217) - Improved gallery loading when switching between view modes.
@@ -196,24 +278,24 @@ # v1.8.2 (_09-05-2023_) ## Added - - Atari 2600 support added. Solves [#224](https://github.com/zurdi15/romm/issues/224) - - Atari 7800 support added. Solves [#226](https://github.com/zurdi15/romm/issues/226) - - Atari 5200 support added. Solves [#225](https://github.com/zurdi15/romm/issues/225) - - Sega 32X support added. Solves [#223](https://github.com/zurdi15/romm/issues/223) - - Nintendo Virtual Boy support added. Solves [#222](https://github.com/zurdi15/romm/issues/222) + - Atari 2600 support added. Solves [#224](https://github.com/rommapp/romm/issues/224) + - Atari 7800 support added. Solves [#226](https://github.com/rommapp/romm/issues/226) + - Atari 5200 support added. Solves [#225](https://github.com/rommapp/romm/issues/225) + - Sega 32X support added. Solves [#223](https://github.com/rommapp/romm/issues/223) + - Nintendo Virtual Boy support added. Solves [#222](https://github.com/rommapp/romm/issues/222) ## Fixed - - Fixed potentially malformed urls for covers and screenshots from IGDB. Solves [#216](https://github.com/zurdi15/romm/issues/216) - - Fixed potentially scan fail with some games with large names. Solves [#229](https://github.com/zurdi15/romm/issues/229) + - Fixed potentially malformed urls for covers and screenshots from IGDB. Solves [#216](https://github.com/rommapp/romm/issues/216) + - Fixed potentially scan fail with some games with large names. Solves [#229](https://github.com/rommapp/romm/issues/229)
# v1.8.1 (_27-04-2023_) ## Added - - Now it is possible to search a rom match by Name and by ID. Solves [#208](https://github.com/zurdi15/romm/issues/208) - - Now screenshots are displayed in screenshots tab (Complete scan needed in order to fetch screenshots from IGDB). Partially solves [#57](https://github.com/zurdi15/romm/issues/57) - - Now more rom properties can be manually edited. Solves [#140](https://github.com/zurdi15/romm/issues/140) + - Now it is possible to search a rom match by Name and by ID. Solves [#208](https://github.com/rommapp/romm/issues/208) + - Now screenshots are displayed in screenshots tab (Complete scan needed in order to fetch screenshots from IGDB). Partially solves [#57](https://github.com/rommapp/romm/issues/57) + - Now more rom properties can be manually edited. Solves [#140](https://github.com/rommapp/romm/issues/140)
@@ -221,12 +303,12 @@ ## Added - Home screen. - - Config option to associate custom system folders to platforms (Complete scan needed). Check [config.yml](docker/config.example.yml) example. Solves [#152](https://github.com/zurdi15/romm/issues/152). - - Sega Saturn and Master System support added. Check [platforms support](https://github.com/zurdi15/romm#platforms-support). Solves [#194](https://github.com/zurdi15/romm/issues/194). + - Config option to associate custom system folders to platforms (Complete scan needed). Check [config.yml](docker/config.example.yml) example. Solves [#152](https://github.com/rommapp/romm/issues/152). + - Sega Saturn and Master System support added. Check [platforms support](https://github.com/rommapp/romm#platforms-support). Solves [#194](https://github.com/rommapp/romm/issues/194). - Progress bar when games are being downloaded. ## Changed - Routes to different RomM sections and games changed now allow share direct links to platforms and games. - - RomM now can scan subdirectories in a multi-part game. Solves [#179](https://github.com/zurdi15/romm/issues/179). + - RomM now can scan subdirectories in a multi-part game. Solves [#179](https://github.com/rommapp/romm/issues/179). - Settings and Scan sections are now in the main drawer menu. - Some UI changes. ## Fixed @@ -295,7 +377,7 @@ ## Added - Now sqlite database location needs to be binded to ``/romm/database``. Check [docker-compose](examples/docker-compose.example.yml) example. - Now resources location (games cover) needs to be binded to ``/romm/resources``. Check [docker-compose](examples/docker-compose.example.yml) example. - - More platforms support. Check [platforms support](https://github.com/zurdi15/romm#platforms-support) + - More platforms support. Check [platforms support](https://github.com/rommapp/romm#platforms-support) - Now RomM version appears in the bottom of the settings panel ## Fixed - Download feature is now fixed for RomM structucture 1 @@ -321,11 +403,8 @@ # v1.5 (_30-03-2023_) -**`Breaking change`** - -In order to make the new features to work, it is mandatory this time to drop all the database. This will only make you need to re-scan, but you won't lose the cover changes or file changes you made. - -I apologize for the inconveniences this may cause, as this is a new software, it may change a little bit the first weeks, at least until I can develop a proper way to migrate between versions. I hope you can understand these initial wipes in order to make a better tool. +> [!WARNING] +> In order to make the new features to work, it is mandatory this time to drop all the database. This will only make you need to re-scan, but you won't lose the cover changes or file changes you made. I apologize for the inconveniences this may cause, as this is a new software, it may change a little bit the first weeks, at least until I can develop a proper way to migrate between versions. I hope you can understand these initial wipes in order to make a better tool. ## Added - Now RomM folder structure is more flexible to match two different patrons by priority. This change makes RomM **Emudeck** compatible at least with single file games platforms. Check [folder structure](readme.md#⚠️-folder-structure) @@ -344,8 +423,8 @@ I apologize for the inconveniences this may cause, as this is a new software, it # v1.4 (_29-03-2023_) ## Added - - Gamecube support [platforms support](https://github.com/zurdi15/romm#platforms-support) - - PC support added (only for single file games like zip, iso, etc) [platforms support](https://github.com/zurdi15/romm#platforms-support) + - Gamecube support [platforms support](https://github.com/rommapp/romm#platforms-support) + - PC support added (only for single file games like zip, iso, etc) [platforms support](https://github.com/rommapp/romm#platforms-support) ## Changed - Now delete game only deletes it from RomM gallery. To delete it from the filesystem too you need to allow it with the checkbox. @@ -383,7 +462,7 @@ Columns to modify (examples in case that you set it with database name as romm, ## Added - Notification added when downloading a game ## Changed - - Database name when using mariadb now can be changed with the new variable DB_NAME. Check [docker-compos.example.yml](https://github.com/zurdi15/romm/blob/master/examples/docker-compose.example.yml) + - Database name when using mariadb now can be changed with the new variable DB_NAME. Check [docker-compos.example.yml](https://github.com/rommapp/romm/blob/master/examples/docker-compose.example.yml) ## Fixed - Potential password error when using mariadb if the password have special characters - Some other bugs @@ -394,9 +473,9 @@ Columns to modify (examples in case that you set it with database name as romm, ## Added - SQLite support - - Dreamcast support (https://github.com/zurdi15/romm#platforms-support) + - Dreamcast support (https://github.com/rommapp/romm#platforms-support) ## Changed - - SQLite is now the database by default if ROMM_DB_DRIVER is not set. Check [docker-compos.example.yml](https://github.com/zurdi15/romm/blob/master/examples/docker-compose.example.yml) + - SQLite is now the database by default if ROMM_DB_DRIVER is not set. Check [docker-compos.example.yml](https://github.com/rommapp/romm/blob/master/examples/docker-compose.example.yml) - Platforms and games are now shown by alphabetical order
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 87d679876..21d56ccac 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -10,7 +10,7 @@ Please note that this project adheres to the Contributor Covenant [code of condu ### Contributing to the Wiki -If you would like to contribute to the project's [documentation](https://github.com/zurdi15/romm/wiki), reach out to the maintainers to get edit access. We welcome any contributions that help improve the documentation (new pages, updates, or corrections). +If you would like to contribute to the project's [documentation](https://github.com/rommapp/romm/wiki), reach out to the maintainers to get edit access. We welcome any contributions that help improve the documentation (new pages, updates, or corrections). ### How to Contribute Code @@ -42,7 +42,7 @@ Follow the existing code style used throughout the project. If working with VSCo ### Issue Reporting -If you encounter any bugs or have suggestions for improvements, please [create an issue](https://github.com/zurdi15/romm/issues) on GitHub. Provide as much detail as possible, including steps to reproduce the issue if applicable. +If you encounter any bugs or have suggestions for improvements, please [create an issue](https://github.com/rommapp/romm/issues) on GitHub. Provide as much detail as possible, including steps to reproduce the issue if applicable. ### Licensing diff --git a/README.md b/README.md index b3396f0f6..dbb881178 100644 --- a/README.md +++ b/README.md @@ -18,10 +18,8 @@ - - > [!WARNING] -> Version 3.0 introduces exciting new fetures that require some changes to how RomM is setup and configured. **If you're currently running a 2.x version, please review the [migration guide](https://github.com/zurdi15/romm/wiki/Upgrading-to-3.0) before upgrading.** +> Version 3.0 introduces exciting new fetures that require some changes to how RomM is setup and configured. **If you're currently running a 2.x version, please review the [migration guide](https://github.com/rommapp/romm/wiki/Upgrading-to-3.0) before upgrading.** # Overview @@ -53,8 +51,6 @@ Before running the [image][docker-tags], ensure that Docker is installed and run 3. Create a docker-compose.yml file by referring to the example [docker-compose.yml][docker-compose-example] file for guidance, and customize it for your setup with [the available environment variables](wiki-env-variables). 4. Launch the container(s) with `docker-compose up -d`. - - > [!NOTE] > **If you are having issues with RomM, please review the [wiki page][wiki-troubleshooting-url] for troubleshooting steps and common issues.** @@ -194,28 +190,28 @@ Here are a few projects that we think you might like: -[wiki-url]: https://github.com/zurdi15/romm/wiki -[wiki-supported-platforms-url]: https://github.com/zurdi15/romm/wiki/Supported-Platforms -[wiki-authentication-url]: https://github.com/zurdi15/romm/wiki/Authentication -[wiki-platforms-icons-url]: https://github.com/zurdi15/romm/wiki/Custom-Platform-Icons -[wiki-troubleshooting-url]: https://github.com/zurdi15/romm/wiki/Troubleshooting -[wiki-emulatorjs-url]: https://github.com/zurdi15/romm/wiki/EmulatorJS-Player -[wiki-env-variables]: https://github.com/zurdi15/romm/wiki/Environment-Variables -[wiki-scheduled-tasks]: https://github.com/zurdi15/romm/wiki/Scheduled-Tasks +[wiki-url]: https://github.com/rommapp/romm/wiki +[wiki-supported-platforms-url]: https://github.com/rommapp/romm/wiki/Supported-Platforms +[wiki-authentication-url]: https://github.com/rommapp/romm/wiki/Authentication +[wiki-platforms-icons-url]: https://github.com/rommapp/romm/wiki/Custom-Platform-Icons +[wiki-troubleshooting-url]: https://github.com/rommapp/romm/wiki/Troubleshooting +[wiki-emulatorjs-url]: https://github.com/rommapp/romm/wiki/EmulatorJS-Player +[wiki-env-variables]: https://github.com/rommapp/romm/wiki/Environment-Variables +[wiki-scheduled-tasks]: https://github.com/rommapp/romm/wiki/Scheduled-Tasks -[license-badge]: https://img.shields.io/github/license/zurdi15/romm?style=for-the-badge&color=a32d2a +[license-badge]: https://img.shields.io/github/license/rommapp/romm?style=for-the-badge&color=a32d2a [license-badge-url]: LICENSE -[release-badge]: https://img.shields.io/github/v/release/zurdi15/romm?style=for-the-badge -[release-badge-url]: https://github.com/zurdi15/romm/releases +[release-badge]: https://img.shields.io/github/v/release/rommapp/romm?style=for-the-badge +[release-badge-url]: https://github.com/rommapp/romm/releases [discord-badge]: https://img.shields.io/badge/discord-7289da?style=for-the-badge [discord-badge-url]: https://discord.gg/P5HtHnhUDH [unraid-badge]: https://img.shields.io/badge/Unraid-f57842?style=for-the-badge&labelColor=ee512b [unraid-badge-url]: https://forums.unraid.net/topic/149738-support-eurotimmy-romm-rom-manager-by-zurdi15/ [wiki-badge]: https://img.shields.io/badge/Wiki-736e9b?style=for-the-badge -[docker-pulls-badge]: https://img.shields.io/docker/pulls/zurdi15/romm?style=for-the-badge&label=pulls -[docker-pulls-badge-url]: https://hub.docker.com/r/zurdi15/romm +[docker-pulls-badge]: https://img.shields.io/docker/pulls/rommapp/romm?style=for-the-badge&label=pulls +[docker-pulls-badge-url]: https://hub.docker.com/r/rommapp/romm @@ -226,7 +222,7 @@ Here are a few projects that we think you might like: -[docker-tags]: https://hub.docker.com/r/zurdi15/romm/tags +[docker-tags]: https://hub.docker.com/r/rommapp/romm/tags [igdb]: https://www.igdb.com/ [igdb-api]: https://api-docs.igdb.com/#getting-started [titleid-program-id-url]: https://switchbrew.org/w/index.php?title=Title_list/Games&mobileaction=toggle_view_desktop diff --git a/SECURITY.md b/SECURITY.md index 399020d0f..71508d11f 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -6,7 +6,7 @@ If you believe you have found a security vulnerability in RomM, please report it **Do not report security vulnerabilities through public GitHub issues, discussions, pull requests, or on our public Discord server.** -Instead, use the [vulnerability report form](https://github.com/zurdi15/romm/security/advisories/new) on GitHub. +Instead, use the [vulnerability report form](https://github.com/rommapp/romm/security/advisories/new) on GitHub. Please include as much of the information listed below as you can to help us better understand and resolve the issue: diff --git a/backend/config/__init__.py b/backend/config/__init__.py index 41f7b859a..be9afa536 100644 --- a/backend/config/__init__.py +++ b/backend/config/__init__.py @@ -28,6 +28,7 @@ DB_NAME: Final = os.environ.get("DB_NAME", "romm") # REDIS REDIS_HOST: Final = os.environ.get("REDIS_HOST", "127.0.0.1") REDIS_PORT: Final = os.environ.get("REDIS_PORT", 6379) +REDIS_PASSWORD: Final = os.environ.get("REDIS_PASSWORD") # IGDB IGDB_CLIENT_ID: Final = os.environ.get( diff --git a/backend/endpoints/rom.py b/backend/endpoints/rom.py index 91ddfb039..308fbbe7f 100644 --- a/backend/endpoints/rom.py +++ b/backend/endpoints/rom.py @@ -22,7 +22,7 @@ from handler import ( fs_resource_handler, fs_rom_handler, igdb_handler, - moby_handler + moby_handler, ) from handler.fs_handler import CoverSize from logger.logger import log @@ -186,9 +186,11 @@ def get_rom_content( if not rom.multi: return FileResponse(path=rom_path, filename=rom.file_name) - + if len(files_to_download) == 1: - return FileResponse(path=f"{rom_path}/{files_to_download[0]}", filename=files_to_download[0]) + return FileResponse( + path=f"{rom_path}/{files_to_download[0]}", filename=files_to_download[0] + ) # Builds a generator of tuples for each member file def local_files(): @@ -201,7 +203,10 @@ def get_rom_content( log.error(f"File {rom_path}/{f} not found!") raise - m3u_file = [str.encode(f"{files_to_download[i]}\n") for i in range(len(files_to_download))] + m3u_file = [ + str.encode(f"{files_to_download[i]}\n") + for i in range(len(files_to_download)) + ] return [ ( f, @@ -264,9 +269,9 @@ async def update_rom( cleaned_data["moby_id"] = data.get("moby_id", db_rom.moby_id) or None if cleaned_data["moby_id"]: - moby_rom = moby_handler.get_rom_by_id(cleaned_data["moby_id"]) + moby_rom = moby_handler.get_rom_by_id(cleaned_data["moby_id"]) cleaned_data.update(moby_rom) - + if cleaned_data["igdb_id"]: igdb_rom = igdb_handler.get_rom_by_id(cleaned_data["igdb_id"]) cleaned_data.update(igdb_rom) @@ -281,7 +286,7 @@ async def update_rom( if rename_as_igdb: fs_safe_file_name = db_rom.file_name.replace( - db_rom.file_name_no_tags, fs_safe_name + db_rom.file_name_no_tags or db_rom.file_name_no_ext, fs_safe_name ) try: diff --git a/backend/endpoints/search.py b/backend/endpoints/search.py index c82009b33..70ae50937 100644 --- a/backend/endpoints/search.py +++ b/backend/endpoints/search.py @@ -45,6 +45,8 @@ async def search_rom( return [] search_term = search_term or rom.file_name_no_tags + if not search_term: + return [] log.info(emoji.emojize(":magnifying_glass_tilted_right: Searching metadata providers...")) matched_roms: list = [] diff --git a/backend/endpoints/webrcade.py b/backend/endpoints/webrcade.py index 41deb0496..0ae1d5dd4 100644 --- a/backend/endpoints/webrcade.py +++ b/backend/endpoints/webrcade.py @@ -29,8 +29,8 @@ def platforms_webrcade_feed(request: Request) -> WebrcadeFeedSchema: "title": "RomM Feed", "longTitle": "Custom RomM Feed", "description": "Custom feed from your RomM library", - "thumbnail": "https://raw.githubusercontent.com/zurdi15/romm/f2dd425d87ad8e21bf47f8258ae5dcf90f56fbc2/frontend/assets/isotipo.svg", - "background": "https://raw.githubusercontent.com/zurdi15/romm/release/.github/screenshots/gallery.png", + "thumbnail": "https://raw.githubusercontent.com/rommapp/romm/f2dd425d87ad8e21bf47f8258ae5dcf90f56fbc2/frontend/assets/isotipo.svg", + "background": "https://raw.githubusercontent.com/rommapp/romm/release/.github/screenshots/gallery.png", "categories": [ { "title": p.name, diff --git a/backend/exceptions/fs_exceptions.py b/backend/exceptions/fs_exceptions.py index ef00aa942..466c7cfca 100644 --- a/backend/exceptions/fs_exceptions.py +++ b/backend/exceptions/fs_exceptions.py @@ -1,4 +1,4 @@ -folder_struct_msg = "Check RomM folder structure here: https://github.com/zurdi15/romm#-folder-structure" +folder_struct_msg = "Check RomM folder structure here: https://github.com/rommapp/romm?tab=readme-ov-file#folder-structure" class FolderStructureNotMatchException(Exception): diff --git a/backend/handler/gh_handler.py b/backend/handler/gh_handler.py index d6db36cd0..47aa0f046 100644 --- a/backend/handler/gh_handler.py +++ b/backend/handler/gh_handler.py @@ -35,7 +35,7 @@ class GHHandler: try: response = requests.get( - "https://api.github.com/repos/zurdi15/romm/releases/latest", timeout=5 + "https://api.github.com/repos/rommapp/romm/releases/latest", timeout=5 ) except ReadTimeout: log.warning("Timeout while connecting to Github") diff --git a/backend/handler/metadata_handler/moby_handler.py b/backend/handler/metadata_handler/moby_handler.py index a0336cccc..fd1eca91f 100644 --- a/backend/handler/metadata_handler/moby_handler.py +++ b/backend/handler/metadata_handler/moby_handler.py @@ -122,10 +122,9 @@ class MobyGamesHandler(MetadataHandler): rom for rom in roms if ( - rom["name"].lower() == search_term.lower() - or rom["slug"].lower() == search_term.lower() + rom["title"].lower() == search_term.lower() or ( - self._normalize_exact_match(rom["name"]) + self._normalize_exact_match(rom["title"]) == self._normalize_exact_match(search_term) ) ) diff --git a/backend/handler/redis_handler.py b/backend/handler/redis_handler.py index 1a5250cde..8d780fb6a 100644 --- a/backend/handler/redis_handler.py +++ b/backend/handler/redis_handler.py @@ -1,7 +1,7 @@ import sys from enum import Enum -from config import REDIS_HOST, REDIS_PORT +from config import REDIS_HOST, REDIS_PORT, REDIS_PASSWORD from logger.logger import log from redis import Redis from rq import Queue @@ -39,8 +39,8 @@ class FallbackCache: return repr(self) -redis_client = Redis(host=REDIS_HOST, port=REDIS_PORT, db=0) -redis_url = f"redis://{REDIS_HOST}:{REDIS_PORT}" +redis_client = Redis(host=REDIS_HOST, port=REDIS_PORT, password=REDIS_PASSWORD, db=0) +redis_url = f"redis://:{REDIS_PASSWORD}@{REDIS_HOST}:{REDIS_PORT}" if REDIS_PASSWORD else f"redis://{REDIS_HOST}:{REDIS_PORT}" high_prio_queue = Queue(name=QueuePrio.HIGH.value, connection=redis_client) default_queue = Queue(name=QueuePrio.DEFAULT.value, connection=redis_client) @@ -54,6 +54,7 @@ else: cache = Redis( host=REDIS_HOST, port=REDIS_PORT, + password=REDIS_PASSWORD, db=0, decode_responses=True, ) diff --git a/backend/handler/socket_handler.py b/backend/handler/socket_handler.py index 37b1b4059..f26236491 100644 --- a/backend/handler/socket_handler.py +++ b/backend/handler/socket_handler.py @@ -12,4 +12,4 @@ class SocketHandler: client_manager=socketio.AsyncRedisManager(redis_url), ) - self.socket_app = socketio.ASGIApp(self.socket_server) + self.socket_app = socketio.ASGIApp(self.socket_server, socketio_path="/ws/socket.io") diff --git a/backend/logger/file_formatter.py b/backend/logger/file_formatter.py deleted file mode 100644 index b550e3b1d..000000000 --- a/backend/logger/file_formatter.py +++ /dev/null @@ -1,23 +0,0 @@ -import logging - - -class FileFormatter(logging.Formatter): - level: str = "%(levelname)s" - dots: str = ":" - identifier: str = "\t [RomM]" - identifier_warning: str = " [RomM]" - identifier_critical: str = " [RomM]" - msg: str = "%(message)s" - date: str = "[%(asctime)s] " - FORMATS: dict = { - logging.DEBUG: level + dots + identifier + date + msg, - logging.INFO: level + dots + identifier + date + msg, - logging.WARNING: level + dots + identifier_warning + date + msg, - logging.ERROR: level + dots + identifier + date + msg, - logging.CRITICAL: level + dots + identifier_critical + date + msg - } - - def format(self, record): - log_fmt = self.FORMATS.get(record.levelno) - formatter = logging.Formatter(fmt=log_fmt, datefmt='%Y-%m-%d %H:%M:%S') - return formatter.format(record) \ No newline at end of file diff --git a/backend/logger/logger.py b/backend/logger/logger.py index 69affbee3..a2d6fcb64 100644 --- a/backend/logger/logger.py +++ b/backend/logger/logger.py @@ -1,20 +1,8 @@ import logging import sys -from datetime import datetime -from pathlib import Path -from typing import Final -from config import ROMM_BASE_PATH -from logger.file_formatter import FileFormatter from logger.stdout_formatter import StdoutFormatter -LOGS_BASE_PATH: Final = f"{ROMM_BASE_PATH}/logs" - -# Create logs folder if not exists -Path(LOGS_BASE_PATH).mkdir(parents=True, exist_ok=True) -now = datetime.now() -logs_file = f"{LOGS_BASE_PATH}/{now.strftime('%Y%m%d_%H%M%S')}.log" - # Get logger log = logging.getLogger("romm") log.setLevel(logging.DEBUG) @@ -24,10 +12,5 @@ stdout_handler = logging.StreamHandler(sys.stdout) stdout_handler.setFormatter(StdoutFormatter()) log.addHandler(stdout_handler) -# Define file handler -file_handler = logging.FileHandler(logs_file) -file_handler.setFormatter(FileFormatter()) -log.addHandler(file_handler) - # Hush passlib warnings logging.getLogger("passlib").setLevel(logging.ERROR) diff --git a/docker/Dockerfile b/docker/Dockerfile index b1bb5e9df..a8e1b1942 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -6,7 +6,7 @@ RUN npm install RUN npm run build # Setup frontend -FROM nginx:1.24-alpine3.17-slim as production-stage +FROM nginx:1.25.4-alpine3.18-slim as production-stage ARG WEBSERVER_FOLDER=/var/www/html COPY --from=front-build-stage /front/dist ${WEBSERVER_FOLDER} COPY ./frontend/assets/default ${WEBSERVER_FOLDER}/assets/default @@ -56,7 +56,9 @@ RUN . /backend/bin/activate && \ # Install project dependencies using poetry RUN . /backend/bin/activate && \ + mkdir -p /root/.cache/pypoetry/virtualenvs && \ python3 -m poetry config --no-cache virtualenvs.create false && \ + python3 -m poetry env use 3.11 && \ python3 -m poetry install --no-interaction --no-ansi --no-cache --only main && \ python3 -m poetry export --without-hashes --only main --without-urls | awk -F= '{print $1}' > /installed_poetry_requirements.txt @@ -148,15 +150,20 @@ RUN rm -r \ /docker-entrypoint.sh \ /docker-entrypoint.d +# User permissions +RUN addgroup -g 1000 -S romm && adduser -u 1000 -D -S -G romm romm + +# Create the directories and set ownership and permissions +RUN mkdir /romm /redis-data && \ + chown romm:romm /romm /redis-data /backend/handler/fixtures && \ + chmod -R 755 /romm /redis-data /backend/handler/fixtures + # Move everything we prepared over to our final docker image FROM scratch COPY --from=production-stage / / -RUN addgroup -g 1000 -S romm && adduser -u 1000 -D -S -G romm romm -RUN mkdir /romm && chown 1000:1000 /romm -R -# Create data volume for redis -RUN mkdir /redis-data && chown 1000:1000 /redis-data -VOLUME /redis-data +# Declare the supported volumes +VOLUME ["/romm/resources", "/romm/library", "/romm/assets", "/romm/config", "/redis-data"] # Expose ports and start EXPOSE 8080 diff --git a/docker/build_local_image.sh b/docker/build_local_image.sh index 01febc767..5c4b7b061 100755 --- a/docker/build_local_image.sh +++ b/docker/build_local_image.sh @@ -1,6 +1,5 @@ #!/bin/bash -VERSION="2.0.0" branch_name="$(git symbolic-ref HEAD 2>/dev/null)" branch_name=${branch_name##refs/heads/} -docker build -t zurdi15/romm:local-${VERSION}-${branch_name} . --file ./docker/Dockerfile +docker build -t rommapp/romm:local-${branch_name} . --file ./docker/Dockerfile diff --git a/docker/init_scripts/init b/docker/init_scripts/init index 85320836f..ff0a3be14 100755 --- a/docker/init_scripts/init +++ b/docker/init_scripts/init @@ -34,15 +34,20 @@ error_log () { } # function that runs or main process and creates a corresponding PID file, -# sadly uvicorn can not do that itself -start_bin_uvicorn () { +start_bin_gunicorn () { # cleanup potentially leftover socket - rm /tmp/uvicorn.sock -f + rm /tmp/gunicorn.sock -f # Commands to start our main application and store its PID to check for crashes - info_log "starting uvicorn" - uvicorn main:app --proxy-headers --host 0.0.0.0 --port 5000 --uds /tmp/uvicorn.sock --workers 2 & - UVICORN_PID=$! - echo $UVICORN_PID > /tmp/uvicorn.pid + info_log "starting gunicorn" + gunicorn \ + --access-logfile - \ + --error-logfile - \ + --worker-class uvicorn.workers.UvicornWorker \ + --bind=0.0.0.0:5000 \ + --bind=unix:/tmp/gunicorn.sock \ + --pid=/tmp/gunicorn.pid \ + --workers 2 \ + main:app & } # Commands to start nginx (handling PID creation internally) @@ -104,11 +109,16 @@ watchdog_process_pid () { # switch to backend directory cd /backend || { error_log "/backend directory doesn't seem to exist"; } +info_log "Starting up, please wait..." + # function definition done, lets start our main loop while true; do + # check for died processes every 5 seconds + sleep 5 + # Start redis server if we dont have a corresponding PID file # and REDIS_HOST is not set (which would mean we're using an external redis) - if [[ -z "${REDIS_HOST}" ]]; then + if [[ -z "${REDIS_HOST:=""}" ]]; then watchdog_process_pid bin redis-server fi @@ -129,7 +139,7 @@ while true; do watchdog_process_pid bin nginx # Start uvicorn if we dont have a corresponding PID file - watchdog_process_pid bin uvicorn + watchdog_process_pid bin gunicorn # only start the watcher.py if we actually want to use the rescan on fs change feature if [[ ${ENABLE_RESCAN_ON_FILESYSTEM_CHANGE} == "true" ]]; then @@ -143,7 +153,4 @@ while true; do watchdog_process_pid python worker # Start scheduler if we dont have a corresponding PID file watchdog_process_pid python scheduler - - # check for died processes every 5 seconds - sleep 5 done diff --git a/docker/nginx/default.conf b/docker/nginx/default.conf index 8daa911c3..8c3048407 100644 --- a/docker/nginx/default.conf +++ b/docker/nginx/default.conf @@ -45,8 +45,8 @@ http { # include /etc/nginx/conf.d/*.conf; # include /etc/nginx/sites-enabled/*; - upstream uvicorn { - server unix:/tmp/uvicorn.sock; + upstream wsgi_server { + server unix:/tmp/gunicorn.sock; } server { @@ -74,16 +74,16 @@ http { # OpenAPI for swagger and redoc location /openapi.json { - proxy_pass http://uvicorn; + proxy_pass http://wsgi_server; } # Backend api calls location /api { rewrite /api/(.*) /$1 break; - proxy_pass http://uvicorn; + proxy_pass http://wsgi_server; } location /ws { - proxy_pass http://uvicorn; + proxy_pass http://wsgi_server; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; diff --git a/examples/docker-compose.example.yml b/examples/docker-compose.example.yml index 6a3f6cdb8..a1d1b24ba 100644 --- a/examples/docker-compose.example.yml +++ b/examples/docker-compose.example.yml @@ -7,7 +7,7 @@ volumes: services: romm: - image: zurdi15/romm:latest + image: rommapp/romm:latest container_name: romm restart: unless-stopped environment: @@ -27,7 +27,6 @@ services: - /path/to/library:/romm/library # Your game library - /path/to/assets:/romm/assets # Uploaded saves, states, etc. - /path/to/config:/romm/config # [Optional] Path where config.yml is stored - - /path/to/logs:/romm/logs # [Optional] Path where logs are stored ports: - 80:8080 depends_on: diff --git a/frontend/assets/platforms/pippin.ico b/frontend/assets/platforms/apple-pippin.ico similarity index 100% rename from frontend/assets/platforms/pippin.ico rename to frontend/assets/platforms/apple-pippin.ico diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 1bdffce48..837c91f0f 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -23,7 +23,7 @@ "nanoid": "^5.0.4", "pinia": "^2.1.6", "roboto-fontface": "*", - "socket.io-client": "^4.6.1", + "socket.io-client": "^4.7.5", "vue": "^3.2.13", "vue-router": "^4.0.0", "vuetify": "^3.3.3", @@ -1870,36 +1870,6 @@ "node": ">=6.9.0" } }, - "node_modules/@esbuild/android-arm": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.15.18.tgz", - "integrity": "sha512-5GT+kcs2WVGjVs7+boataCkO5Fg0y4kCjzkB5bAip7H4jfnOS3dA6KPiww9W1OEKTKeAcUVhdZGvgI65OXmUnw==", - "cpu": [ - "arm" - ], - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.15.18.tgz", - "integrity": "sha512-L4jVKS82XVhw2nvzLg/19ClLWg0y27ulRwuP7lcyL6AbUWB5aPglXY3M21mauDQMDfRLs8cQmeT03r/+X3cZYQ==", - "cpu": [ - "loong64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, "node_modules/@eslint/eslintrc": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.0.tgz", @@ -3380,111 +3350,6 @@ "esbuild-windows-arm64": "0.15.18" } }, - "node_modules/esbuild-android-64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.15.18.tgz", - "integrity": "sha512-wnpt3OXRhcjfIDSZu9bnzT4/TNTDsOUvip0foZOUBG7QbSt//w3QV4FInVJxNhKc/ErhUxc5z4QjHtMi7/TbgA==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-android-arm64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.15.18.tgz", - "integrity": "sha512-G4xu89B8FCzav9XU8EjsXacCKSG2FT7wW9J6hOc18soEHJdtWu03L3TQDGf0geNxfLTtxENKBzMSq9LlbjS8OQ==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-darwin-64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.15.18.tgz", - "integrity": "sha512-2WAvs95uPnVJPuYKP0Eqx+Dl/jaYseZEUUT1sjg97TJa4oBtbAKnPnl3b5M9l51/nbx7+QAEtuummJZW0sBEmg==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-darwin-arm64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.15.18.tgz", - "integrity": "sha512-tKPSxcTJ5OmNb1btVikATJ8NftlyNlc8BVNtyT/UAr62JFOhwHlnoPrhYWz09akBLHI9nElFVfWSTSRsrZiDUA==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-freebsd-64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.15.18.tgz", - "integrity": "sha512-TT3uBUxkteAjR1QbsmvSsjpKjOX6UkCstr8nMr+q7zi3NuZ1oIpa8U41Y8I8dJH2fJgdC3Dj3CXO5biLQpfdZA==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-freebsd-arm64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.15.18.tgz", - "integrity": "sha512-R/oVr+X3Tkh+S0+tL41wRMbdWtpWB8hEAMsOXDumSSa6qJR89U0S/PpLXrGF7Wk/JykfpWNokERUpCeHDl47wA==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-32": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.15.18.tgz", - "integrity": "sha512-lphF3HiCSYtaa9p1DtXndiQEeQDKPl9eN/XNoBf2amEghugNuqXNZA/ZovthNE2aa4EN43WroO0B85xVSjYkbg==", - "cpu": [ - "ia32" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, "node_modules/esbuild-linux-64": { "version": "0.15.18", "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.15.18.tgz", @@ -3500,186 +3365,6 @@ "node": ">=12" } }, - "node_modules/esbuild-linux-arm": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.15.18.tgz", - "integrity": "sha512-UH779gstRblS4aoS2qpMl3wjg7U0j+ygu3GjIeTonCcN79ZvpPee12Qun3vcdxX+37O5LFxz39XeW2I9bybMVA==", - "cpu": [ - "arm" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-arm64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.15.18.tgz", - "integrity": "sha512-54qr8kg/6ilcxd+0V3h9rjT4qmjc0CccMVWrjOEM/pEcUzt8X62HfBSeZfT2ECpM7104mk4yfQXkosY8Quptug==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-mips64le": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.15.18.tgz", - "integrity": "sha512-Mk6Ppwzzz3YbMl/ZZL2P0q1tnYqh/trYZ1VfNP47C31yT0K8t9s7Z077QrDA/guU60tGNp2GOwCQnp+DYv7bxQ==", - "cpu": [ - "mips64el" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-ppc64le": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.15.18.tgz", - "integrity": "sha512-b0XkN4pL9WUulPTa/VKHx2wLCgvIAbgwABGnKMY19WhKZPT+8BxhZdqz6EgkqCLld7X5qiCY2F/bfpUUlnFZ9w==", - "cpu": [ - "ppc64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-riscv64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.15.18.tgz", - "integrity": "sha512-ba2COaoF5wL6VLZWn04k+ACZjZ6NYniMSQStodFKH/Pu6RxzQqzsmjR1t9QC89VYJxBeyVPTaHuBMCejl3O/xg==", - "cpu": [ - "riscv64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-s390x": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.15.18.tgz", - "integrity": "sha512-VbpGuXEl5FCs1wDVp93O8UIzl3ZrglgnSQ+Hu79g7hZu6te6/YHgVJxCM2SqfIila0J3k0csfnf8VD2W7u2kzQ==", - "cpu": [ - "s390x" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-netbsd-64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.15.18.tgz", - "integrity": "sha512-98ukeCdvdX7wr1vUYQzKo4kQ0N2p27H7I11maINv73fVEXt2kyh4K4m9f35U1K43Xc2QGXlzAw0K9yoU7JUjOg==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-openbsd-64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.15.18.tgz", - "integrity": "sha512-yK5NCcH31Uae076AyQAXeJzt/vxIo9+omZRKj1pauhk3ITuADzuOx5N2fdHrAKPxN+zH3w96uFKlY7yIn490xQ==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-sunos-64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.15.18.tgz", - "integrity": "sha512-On22LLFlBeLNj/YF3FT+cXcyKPEI263nflYlAhz5crxtp3yRG1Ugfr7ITyxmCmjm4vbN/dGrb/B7w7U8yJR9yw==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-windows-32": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.15.18.tgz", - "integrity": "sha512-o+eyLu2MjVny/nt+E0uPnBxYuJHBvho8vWsC2lV61A7wwTWC3jkN2w36jtA+yv1UgYkHRihPuQsL23hsCYGcOQ==", - "cpu": [ - "ia32" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-windows-64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.15.18.tgz", - "integrity": "sha512-qinug1iTTaIIrCorAUjR0fcBk24fjzEedFYhhispP8Oc7SFvs+XeW3YpAKiKp8dRpizl4YYAhxMjlftAMJiaUw==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-windows-arm64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.15.18.tgz", - "integrity": "sha512-q9bsYzegpZcLziq0zgUi5KqGVtfhjxGbnksaBFYmWLxeV/S1fK4OLdq2DFYnXcLMjlZw2L0jLsk1eGoB522WXQ==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, "node_modules/escalade": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", @@ -4064,9 +3749,9 @@ "dev": true }, "node_modules/follow-redirects": { - "version": "1.15.4", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.4.tgz", - "integrity": "sha512-Cr4D/5wlrb0z9dgERpUL3LrmPKVDsETIJhaCMeDfuFYcqa5bldGV6wBsAN6X/vxlXQtFBMrXdXxdL8CbDTGniw==", + "version": "1.15.6", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", + "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==", "funding": [ { "type": "individual", @@ -4125,19 +3810,6 @@ "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", "dev": true }, - "node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, "node_modules/function-bind": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", @@ -6172,9 +5844,9 @@ } }, "node_modules/socket.io-client": { - "version": "4.7.4", - "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-4.7.4.tgz", - "integrity": "sha512-wh+OkeF0rAVCrABWQBaEjLfb7DVPotMbu0cgWgyR0v6eA4EoVnAwcIeIbcdTE3GT/H3kbdLl7OoH2+asoDRIIg==", + "version": "4.7.5", + "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-4.7.5.tgz", + "integrity": "sha512-sJ/tqHOCe7Z50JCBCXrsY3I2k03iOiUe+tj1OmKeD2lXPiGH/RUCdTZFoqVyN7l1MnpIzPrGtLcijffmeouNlQ==", "dependencies": { "@socket.io/component-emitter": "~3.1.0", "debug": "~4.3.2", diff --git a/frontend/package.json b/frontend/package.json index f779ff47c..980c5486e 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -5,13 +5,13 @@ "author": "Zurdi ", "description": "A beautiful, powerful, self-hosted rom manager", "license": "GPL-3.0-only", - "homepage": "https://github.com/zurdi15/romm", + "homepage": "https://github.com/rommapp/romm", "repository": { "type": "git", - "url": "git+gihub.com/zurdi15/romm.git" + "url": "git+gihub.com/rommapp/romm.git" }, "bugs": { - "url": "https://github.com/zurdi15/romm/issues" + "url": "https://github.com/rommapp/romm/issues" }, "keywords": [ "rom", @@ -41,7 +41,7 @@ "nanoid": "^5.0.4", "pinia": "^2.1.6", "roboto-fontface": "*", - "socket.io-client": "^4.6.1", + "socket.io-client": "^4.7.5", "vue": "^3.2.13", "vue-router": "^4.0.0", "vuetify": "^3.3.3", diff --git a/frontend/src/components/Details/Title.vue b/frontend/src/components/Details/Title.vue index 9b89695cf..645b98301 100644 --- a/frontend/src/components/Details/Title.vue +++ b/frontend/src/components/Details/Title.vue @@ -111,28 +111,6 @@ const { smAndDown } = useDisplay(); - - - - - MobyGames - - ID: {{ rom.moby_id }} - - Rating: {{ rom.moby_metadata?.moby_score }} - - - -