Skip to content

Commit

Permalink
v0.4.0 (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmercm authored Oct 29, 2022
1 parent 2a2796c commit 525c06c
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 10 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
`igir` (pronounced "eager") is a platform-independent ROM collection manager to help sort collections and make one game, one rom (1G1R) sets.

![CLI:Windows,macOS,Linux](https://badgen.net/badge/icon/Windows,%20macOS,%20Linux?icon=terminal&label=CLI&color=grey)
[![npm:igir](https://badgen.net/npm/v/igir?icon=npm&label&color=red)](https://www.npmjs.com/package/igir)
[![npm:igir](https://badgen.net/npm/v/igir?icon=npm&label=igir&color=red)](https://www.npmjs.com/package/igir)
[![GitHub:emmercm/igir](https://badgen.net/badge/emmercm/igir/purple?icon=github)](https://github.com/emmercm/igir)
[![License](https://badgen.net/github/license/emmercm/igir)](https://github.com/emmercm/igir/blob/main/LICENSE)

Expand All @@ -15,7 +15,7 @@

A video of an example use case:

[![asciicast](https://asciinema.org/a/WU2fDsdVvmStJ2I9FCv9pprQ7.svg)](https://asciinema.org/a/WU2fDsdVvmStJ2I9FCv9pprQ7)
[![asciicast](https://asciinema.org/a/uVZpMCas3SQIA0q6sCh5rYqdI.svg)](https://asciinema.org/a/uVZpMCas3SQIA0q6sCh5rYqdI)

With a large ROM collection it can be difficult to:

Expand Down Expand Up @@ -82,7 +82,7 @@ Here is the full `igir --help` message which shows all available options and a n
| $$ | $$ __\$$ | $$ | $$__| $$
| $$ | $$| \ | $$ | $$ $$ ROM collection manager
| $$ | $$ \$$$$ | $$ | $$$$$$$\
_| $$_ | $$__| $$ _| $$_ | $$ | $$ v0.3.1
_| $$_ | $$__| $$ _| $$_ | $$ | $$ v0.4.0
| $$ \ \$$ $$| $$ \| $$ | $$
\$$$$$$ \$$$$$$ \$$$$$$ \$$ \$$
Expand All @@ -98,7 +98,7 @@ Commands:
igir report Generate a CSV report on the known ROM files found in the input directories
Path options (inputs support globbing):
-d, --dat Path(s) to DAT files or archives [array] [required] [default: ["*.dat"]]
-d, --dat Path(s) to DAT files or archives [array]
-i, --input Path(s) to ROM files or archives, these files will not be modified
[array] [required]
-I, --input-exclude Path(s) to ROM files to exclude [array]
Expand Down Expand Up @@ -215,6 +215,7 @@ Each manager has its own pros, but many have the same drawbacks or limitations:

## Feature requests, bug reports, and contributing

[![Contributors](https://badgen.net/github/contributors/emmercm/igir?icon=github)](https://github.com/emmercm/igir/graphs/contributors)
[![Feature Requests](https://badgen.net/github/label-issues/emmercm/igir/enhancement/open?icon=github&label=Open%20Feature%20Requests)](https://github.com/emmercm/igir/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement)
[![Bugs](https://badgen.net/github/label-issues/emmercm/igir/bug/open?icon=github&label=Open%20Bugs)](https://github.com/emmercm/igir/issues?q=is%3Aopen+is%3Aissue+label%3Abug)

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"name": "igir",
"version": "0.3.1",
"version": "0.4.0",
"description": "A ROM collection manager designed to make one game, one rom (1G1R) sets.",
"keywords": [
"1g1r",
"analogue",
"anbernic",
"emulation",
"logiqx",
"mister",
"no-intro",
"redump",
"roms",
Expand Down
6 changes: 3 additions & 3 deletions scripts/asciinema-rec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ if [[ "${1:-}" == "play" ]]; then
}
# BEGIN PLAYBACK

# ts-node ./index.ts copy zip report clean -d demo/dats/ -i GB/ -i NES/ -o demo/roms/ -D
# ts-node ./index.ts copy zip report clean -d demo/No-Intro*.zip -i GB/ -i NES/ -o demo/roms/ -D
pei "ls -gn"
echo "" && sleep 1
pei "ls -gn dats/"
pei "unzip -l No-Intro*.zip | head -10" || true
echo "" && sleep 1
pei "npx igir@latest copy zip report --dat dats/ --input roms/ --output roms-sorted/ --dir-dat-name --only-retail"
pei "npx igir@latest copy zip report --dat No-Intro*.zip --input roms/ --output roms-sorted/ --dir-dat-name --only-retail"
echo "" && sleep 1
pei "ls -gn roms-sorted/"

Expand Down
1 change: 1 addition & 0 deletions src/console/progressBarCLI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default class ProgressBarCLI extends ProgressBar {
stream: logger.getLogLevel() < LogLevel.NEVER ? logger.getStream() : new PassThrough(),
barsize: 25,
fps: ProgressBarCLI.fps,
forceRedraw: true,
emptyOnZero: true,
hideCursor: true,
noTTYOutput: true, /** should output for {@link PassThrough} */
Expand Down
1 change: 1 addition & 0 deletions src/types/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ export default class Options implements OptionsProps {
return this.zipExclude;
}

// TODO(cemmer): don't remove header for "headered" DATs
canRemoveHeader(extension: string): boolean {
if (this.removeHeaders === undefined) {
// Option wasn't provided, we shouldn't remove headers
Expand Down

0 comments on commit 525c06c

Please sign in to comment.