ani-cli icon indicating copy to clipboard operation
ani-cli copied to clipboard

Change the install process

Open port19x opened this issue 4 years ago • 10 comments

In what category does your enhancement fall? [choose: safety, speed, ux, qa, other] qa

Status Quo We currently document seperate install processes for each of the different plattforms we support, but still chose to refactor the Makefile to the point where now it is just a very verbose way of copying or removing ani-cli from PATH.

The Enhancement Instead we could simply modify the install documentation to tell people to copy ani-cli to the path themselves + the mpv special case for termux. This would change that step from being a black box ("oh cool, they have a makefile that installs it for me") to be more transparent ("I see, thats how I can run it from anywhere") and also more adaptable since users with weird M1 issues can easily just copy the file to the different PATH location.

Additional context In the past month, issues surrounding installation and/or the makefile have caused a conservative estimate ~25% of the total issues, 90% of support inquiries, and at least 20 hours of work distributed amongst the maintainers. It's easy to let yourself be dragged down by sunken cost. If anyone can convince me how a sudo make oneliner is superior from a user perspective than a sudo cp ani-cli /usr/local/bin/ani-cli, I may reconsider my stance

port19x avatar Jan 26 '22 16:01 port19x

Slight correction: The makefile also marks ani-cli as executable. Doesn't change my opinion tho

port19x avatar Jan 26 '22 16:01 port19x

To also say something, the AUR package completely disregards the Makefile anyway and does the same thing as copying it into /bin and making it an executable.

sgtxd avatar Jan 26 '22 16:01 sgtxd

I personally never understood (why it exists) nor used the makefile... It also adds an extra dependency for the installation: build-essential (although it's pretty common to have it)

Derisis13 avatar Jan 27 '22 00:01 Derisis13

if you want to work without the makefile, ok, but with the frequency of updates it is quite annoying to copy the file all the time. Therefore I would suggest to work directly with a symlink.

So instructions for linux (other) would look like this:

git clone https://github.com/pystardust/ani-cli
cd ani-cli
chmod +x ani-cli
sudo ln -s /home/<username>/ani-cli/ani-cli /usr/local/bin

Uninstallation would then look like this:

sudo unlink /usr/local/bin/ani-cli

Xathros1 avatar Jan 28 '22 00:01 Xathros1

we have already tried symlinks, so lol no @Xathros1

ghost avatar Jan 28 '22 00:01 ghost

As written, this was only a suggestion. In any case, it works.

Xathros1 avatar Jan 28 '22 00:01 Xathros1

On a tangent, Windows instructions need to be rewritten.

Git Bash doesn't allow users to use $(WINDIR) to reference environment variables.

This requires the installation instructions to be rewritten as such:

git clone https://github.com/pystardust/ani-cli.git
cd ani-cli
mkdir -p "$USERPROFILE/.cache"
cp ani-cli $WINDIR/system32/ani-cli

sadkris avatar Jan 28 '22 00:01 sadkris

we have already tried symlinks, so lol no @Xathros1

100% what I would have answered

port19x avatar Jan 28 '22 14:01 port19x

but we can do with ~/.local/bin right. because most of the people having that

r4vanan avatar Feb 06 '23 10:02 r4vanan

no

justchokingaround avatar Feb 06 '23 10:02 justchokingaround