SplitNSP-Swift-GUI icon indicating copy to clipboard operation
SplitNSP-Swift-GUI copied to clipboard

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

Open joshenders opened this issue 2 years ago • 0 comments

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

joshenders avatar Oct 24 '23 23:10 joshenders