From 12d80538e231c5bf7f703f62eabcfe3f7da3a472 Mon Sep 17 00:00:00 2001 From: Blatzar <46196380+Blatzar@users.noreply.github.com> Date: Tue, 7 Apr 2020 08:33:13 +0000 Subject: [PATCH] Added automatic install to the docs (#324) --- docs/usage/installation.rst | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/docs/usage/installation.rst b/docs/usage/installation.rst index 8986b3c..a4c46ca 100644 --- a/docs/usage/installation.rst +++ b/docs/usage/installation.rst @@ -8,7 +8,21 @@ Linux users. (For windows choco users, scroll to last) Windows ~~~~~~~ -Please see this video: https://www.youtube.com/watch?v=gC2tctOL5I8 +Please see this video: https://www.youtube.com/watch?v=gC2tctOL5I8 + +Automatic Windows install +~~~~~~~~~~~~~~~~~~~~~ + +Add the following to a file named install.bat and then run it as administrator. + +.. code:: + + ::This installs choco, as found on https://chocolatey.org/docs/installation + @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command " [System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" + + choco install -y git mpv python3 aria2 nodejs + start cmd.exe /c "pip3 install -U git+https://github.com/vn-ki/anime-downloader.git && echo Testing providers, the install is done && anime test" + Windows via ``choco`` ~~~~~~~~~~~~~~~~~~~~~ @@ -30,6 +44,7 @@ Windows via ``choco`` - then the commands to view a show would be:: anime watch --provider *Insert provider name* --new + Mac ~~~