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

Fix linux installation for newer Unity versions #387

Merged
merged 1 commit into from
Dec 11, 2023

Commits on Dec 11, 2023

  1. Fix linux installation for newer Unity versions

    Description
    ============
    
    It seems a very old bug suddenly surfaced.
    The linux pkg install logic is reading the contents of the archive
    into memory and passing it down to the stdin for the `cpio` command.
    I used the singe `write` call to copy the `buffer` to the `stdin` without
    checking if all bytes are actually written. It seems pure luck that this
    worked until now. It seems that in recent versions of Unity some packages
    got so big that a single call to `write` wasn't writing all the bytes into the
    memory location.
    
    I replaced the logic with a filestream copy instead. Something I should have done
    to begin with ...
    Larusso committed Dec 11, 2023
    Configuration menu
    Copy the full SHA
    0528bfb View commit details
    Browse the repository at this point in the history