Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splitting can also be accomplished with a one-liner on the command line #3

Open
joshenders opened this issue Oct 24, 2023 · 0 comments

Comments

@joshenders
Copy link

With the GNU split command installed as gsplit (either via MacPorts or Homebrew), this program can be accomplished with the following one liner on macOS or Linux.

for file in *.nsp; do mkdir "${file%%nsp}nca" && gsplit -b4294901760 --numeric-suffixes=00 "${file}" "${file%%nsp}nca"/"";```

You'll then need to set the archive bit on the .nca directory. You can use NX-shell for that (select the .nca and hit Y for options)

This hasn't been tested under Sonoma but this also used to work directly under macOS: https://github.com/joshenders/macos_eject/blob/master/_macos_eject.command#L102

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant