AutoPlug-Client icon indicating copy to clipboard operation
AutoPlug-Client copied to clipboard

Your commands to install Autoplug in linux do not work, due to the link to the raw file being outdated? or incorrectly formatted?

Open harryeffinpotter opened this issue 1 year ago • 1 comments

This line does not work on linux: curl -o AutoPlug-Client.jar https://github.com/Osiris-Team/AutoPlug-Releases/raw/master/beta-builds/AutoPlug-Client.jar

This line does: curl -o AutoPlug-Client.jar https://raw.githubusercontent.com/Osiris-Team/AutoPlug-Releases/master/beta-builds/AutoPlug-Client.jar

I'm guessing git changed how they store raw files and this probably used to work. I noticed the file result to your suggested manual install commands was 0 bytes and dug futher.

Hope this helps!

harryeffinpotter avatar Apr 30 '24 05:04 harryeffinpotter

@harryeffinpotter Great, yeah, weirdly enough, in the browser both links work. Thanks, will add it to the site once I got time to work on autoplug again ;)

Osiris-Team avatar Apr 30 '24 10:04 Osiris-Team

@harryeffinpotter Great, yeah, weirdly enough, in the browser both links work. Thanks, will add it to the site once I got time to work on autoplug again ;)

Probably the first link redirects to the second one and curl isn't set up to follow the redirects, while a browser does?

Minionguyjpro avatar Jul 03 '24 15:07 Minionguyjpro

@harryeffinpotter Great, yeah, weirdly enough, in the browser both links work. Thanks, will add it to the site once I got time to work on autoplug again ;)

Probably the first link redirects to the second one and curl isn't set up to follow the redirects, while a browser does?

Yeah this is the case. I also ran into the same 0 byte issue with curl with the first link, but if I'd run it with the -L parameter then it works and downloads the file correctly. That first link just redirects to the second one, thus if you'd use curl without it making sure to follow redirects then the generated file will be zero bytes. So that it doesn't work is just due to redirects...

Minionguyjpro avatar Jul 03 '24 15:07 Minionguyjpro

fixed, will update web in a bit

Osiris-Team avatar Jul 15 '24 21:07 Osiris-Team

@harryeffinpotter Great, yeah, weirdly enough, in the browser both links work. Thanks, will add it to the site once I got time to work on autoplug again ;)

Probably the first link redirects to the second one and curl isn't set up to follow the redirects, while a browser does?

Yeah this is the case. I also ran into the same 0 byte issue with curl with the first link, but if I'd run it with the -L parameter then it works and downloads the file correctly. That first link just redirects to the second one, thus if you'd use curl without it making sure to follow redirects then the generated file will be zero bytes. So that it doesn't work is just due to redirects...

AHH I always forget the dang argument to follow redirects. My man.

harryeffinpotter avatar Jul 18 '24 08:07 harryeffinpotter

So

curl -Lo AutoPlug-Client.jar https://github.com/Osiris-Team/AutoPlug-Releases/raw/master/beta-builds/AutoPlug-Client.jar

would work, yeah?

harryeffinpotter avatar Jul 18 '24 08:07 harryeffinpotter

oope, he said he fixed it, was just curious for my own sake.

harryeffinpotter avatar Jul 18 '24 08:07 harryeffinpotter

curl -Lo AutoPlug-Client.jar https://github.com/Osiris-Team/AutoPlug-Releases/raw/master/beta-builds/AutoPlug-Client.jar

indeed it does fix, good call.

harryeffinpotter avatar Jul 18 '24 08:07 harryeffinpotter