From 27502fdadc20f35b18f781b3592627edcf454414 Mon Sep 17 00:00:00 2001 From: Christian Emmer <10749361+emmercm@users.noreply.github.com> Date: Tue, 27 Aug 2024 21:19:00 -0700 Subject: [PATCH] Docs: update asciinema (#1324) --- README.md | 2 +- docs/installation.md | 2 +- docs/usage/collection-sorting.md | 6 +++--- scripts/asciinema-rec.sh | 17 +++++++---------- 4 files changed, 12 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 240e82a83..67fa5cdaf 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ A video of an example use case: -[![asciicast](https://asciinema.org/a/Sum1WBdZRsSTvbZvVuP5Ho1N9.svg)](https://asciinema.org/a/Sum1WBdZRsSTvbZvVuP5Ho1N9) +[![asciicast](https://asciinema.org/a/bZHvtbqyQlRfkHIuZXxmtDbiU.svg)](https://asciinema.org/a/bZHvtbqyQlRfkHIuZXxmtDbiU) With Igir you can manage a ROM collection of any size: diff --git a/docs/installation.md b/docs/installation.md index f01c91dcd..9ba1e3d0a 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -21,7 +21,7 @@ for example: npx igir@latest copy extract --dat *.dat --input ROMs/ --output ROMs-Sorted/ --dir-dat-name ``` -[![asciicast](https://asciinema.org/a/hjMOlN3DwSgo9NGHzPtncOoq9.svg)](https://asciinema.org/a/hjMOlN3DwSgo9NGHzPtncOoq9) +[![asciicast](https://asciinema.org/a/IFU8rU8k800TMVWb9xXv4Jbsv.svg)](https://asciinema.org/a/IFU8rU8k800TMVWb9xXv4Jbsv) !!! tip diff --git a/docs/usage/collection-sorting.md b/docs/usage/collection-sorting.md index 07d824366..e25ce7d1e 100644 --- a/docs/usage/collection-sorting.md +++ b/docs/usage/collection-sorting.md @@ -59,7 +59,7 @@ ROMs-Sorted └── Pokemon Pinball (USA, Australia) (Rumble Version) (SGB Enhanced) (GB Compatible).zip ``` -[![asciicast](https://asciinema.org/a/rOWJwgbbODaXuQeQY4B6uWc4i.svg)](https://asciinema.org/a/rOWJwgbbODaXuQeQY4B6uWc4i) +[![asciicast](https://asciinema.org/a/J6RnpFif6QJrkageFvKH39btk.svg)](https://asciinema.org/a/J6RnpFif6QJrkageFvKH39btk) ## Subsequent collection sorts @@ -119,7 +119,7 @@ ROMs-Sorted └── Pokemon Pinball (USA, Australia) (Rumble Version) (SGB Enhanced) (GB Compatible).zip ``` -[![asciicast](https://asciinema.org/a/PWAfBcvCikzJ7wObLcdFGtZbI.svg)](https://asciinema.org/a/PWAfBcvCikzJ7wObLcdFGtZbI) +[![asciicast](https://asciinema.org/a/WAip4pJrNIKk0IGamov7Js4ba.svg)](https://asciinema.org/a/WAip4pJrNIKk0IGamov7Js4ba) ## Flash cart 1G1R @@ -185,7 +185,7 @@ Your flash cart might then look something like this: └── Pokemon - Yellow Version - Special Pikachu Edition (USA, Europe) (CGB+SGB Enhanced).gb ``` -[![asciicast](https://asciinema.org/a/K8ROFbX8c4NJfUue3lwbe7d8V.svg)](https://asciinema.org/a/K8ROFbX8c4NJfUue3lwbe7d8V) +[![asciicast](https://asciinema.org/a/GxXyngUlZ5Xg8pCh6GhJdDc4t.svg)](https://asciinema.org/a/GxXyngUlZ5Xg8pCh6GhJdDc4t) !!! info diff --git a/scripts/asciinema-rec.sh b/scripts/asciinema-rec.sh index b2b406bb7..fb9e69887 100755 --- a/scripts/asciinema-rec.sh +++ b/scripts/asciinema-rec.sh @@ -22,22 +22,20 @@ if [[ "${1:-}" == "play" ]]; then # shellcheck disable=SC2317 npx() { shift # discard "igir@latest" - node ../dist/index.js "$@" --dat-name-regex-exclude "/encrypted|headerless/i" + node ../dist/index.js "$@" --dat-name-regex-exclude "/encrypted|headerless|3ds/i" } # shellcheck disable=SC2317 tree() { - command tree -N -I -- *.rsl* "$@" + command tree -N "$@" } # BEGIN PLAYBACK # ts-node ./index.ts copy zip clean -d demo/No-Intro*.zip -i GB/ -i NES/ -o demo/roms/ -D - pei "ls -gn" + pei "tree -L 1 ." echo "" && sleep 2 - pei "unzip -l No-Intro*.zip | head -10" || true + pei "npx igir@latest copy zip report --dat 'No-Intro*.zip' --input ROMs/ --output ROMs-Sorted/ --dir-dat-name --only-retail" echo "" && sleep 2 - pei "npx igir@latest copy zip report --dat No-Intro*.zip --input roms/ --output roms-sorted/ --dir-dat-name --only-retail" - echo "" - pei "ls -gn roms-sorted/" + pei "tree -L 1 ROMs-Sorted/" # END PLAYBACK exit 0 @@ -82,9 +80,8 @@ npm --version &> /dev/null || exit 1 npm run build # Clean any previous output -if [[ -d "${DEMO_DIR}/roms-sorted" ]]; then - rm -rf "${DEMO_DIR}/roms-sorted" -fi +rm -rf "${DEMO_DIR}/roms-sorted" +rm -rf "${DEMO_DIR}/*.csv" clear if [[ "${1:-}" == "rec" ]]; then