Skip to content

Commit

Permalink
Docs: update asciinema (#1324)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmercm authored Aug 28, 2024
1 parent 20dae09 commit 27502fd
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions docs/usage/collection-sorting.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
17 changes: 7 additions & 10 deletions scripts/asciinema-rec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 27502fd

Please sign in to comment.