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

docs: create ani-cli.cmd for windows without install ani-cli from scoop #1380

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ani-cli
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

version_number="4.8.10"
version_number="4.8.11"

# UI

Expand Down
13 changes: 13 additions & 0 deletions ani-cli.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@ECHO OFF
IF EXIST "%GIT_INSTALL_ROOT%\bin\bash.exe" SET ani-windows=%GIT_INSTALL_ROOT%\bin\bash.exe && GOTO :next
IF EXIST "%ProgramFiles%\Git\bin\bash.exe" SET ani-windows=%ProgramFiles%\Git\bin\bash.exe && GOTO :next
IF EXIST "%CMDER_ROOT%\vendor\git-for-windows\bin\bash.exe" SET ani-windows=%CMDER_ROOT%\vendor\git-for-windows\bin\bash.exe && GOTO :next
IF EXIST "%~dp0PortableGit" SET ani=%~dp0PortableGit\bin\bash.exe && GOTO :next
aria2c --allow-overwrite "https://github.com/git-for-windows/git/releases/download/v2.45.2.windows.1/PortableGit-2.45.2-64-bit.7z.exe" --dir="%~dp0\" -o "PortableGit.exe"
"%~dp0\PortableGit.exe" -y
del "%~dp0\PortableGit.exe"
SET ani-windows=%~dp0PortableGit\bin\bash.exe
:next
IF NOT EXIST "%~dp0ani-cli" aria2c --allow-overwrite "https://github.com/pystardust/ani-cli/raw/master/ani-cli" --dir="%~dp0\"
IF NOT EXIST "%~dp0ani-cli.1" aria2c --allow-overwrite "https://github.com/pystardust/ani-cli/raw/master/ani-cli.1" --dir="%~dp0\"
"%ani-windows%" %~dp0ani-cli %*
Loading