Kethsar / ytarchive

Garbage Youtube livestream downloader
MIT License
1.13k stars 91 forks source link

How to install? #140

Closed jtheletter closed 1 year ago

jtheletter commented 1 year ago

Per this repo’s readme, brew install danirukun/ytarchive/ytarchive should install, but it instead outputs Error: ytarchive: SHA256 mismatch.

Alternatively this repo offers go install github.com/Kethsar/ytarchive@master. Running that produces no output. After running it, ytarchive is not found.

Kethsar commented 1 year ago

Yeah I may as well remove the brew instructions. Although I think the issue stems from before I had proper versioning set up, and there was only a single release up at a time with the latest set of commits, so that could be fixed so it no longer breaks whenever latest is updated. I've added a comment on the current PR for updating the homebrew repo at https://github.com/DaniruKun/homebrew-ytarchive/pull/3 to have it fixed up a bit.

As for go install, Executables are installed in the directory named by the GOBIN environment variable, which defaults to $GOPATH/bin or $HOME/go/bin if the GOPATH environment variable is not set.. This means you need $HOME/go/bin in your $PATH since I assume you don't use Go and thus don't have $GOPATH set up. That's part of the Alternatively, if you have Go properly installed and set up part before that command is listed.

I don't directly offer support for macOS because I don't have any macOS devices, and thus no way to ensure things work. I could probably start having the automated builds build for darwin64 and maybe darwin/arm64 assuming that maps to M1, but again, no way to properly check.

Spritzerland commented 1 year ago

I found a hacky fix: Doing brew edit ytarchive opens the formula in your favorite text editor. Commenting the sha256 key with # and saving it can make installing it work again.