From 714a5b7563d3631323fd6d40a1127a088ce8c3fb Mon Sep 17 00:00:00 2001 From: samvaio Date: Fri, 16 Dec 2016 05:23:09 +0530 Subject: [PATCH 1/3] Update OSX Guide.md --- docs/guides/OSX Guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/OSX Guide.md b/docs/guides/OSX Guide.md index 00042cfd..7475a911 100644 --- a/docs/guides/OSX Guide.md +++ b/docs/guides/OSX Guide.md @@ -58,7 +58,7 @@ A dialog box will open asking if you want to install `xcode-select`. Select inst Use the following command to get and run `linuxAIO.sh`: (Remember **DO NOT** rename the file `linuxAIO.sh`) -`cd ~ && wget https://github.com/Kwoth/NadekoBot-BashScript/raw/master/linuxAIO.sh && bash linuxAIO.sh` +`cd ~ && wget -N https://github.com/Kwoth/NadekoBot-BashScript/raw/master/linuxAIO.sh && bash linuxAIO.sh` Follow the on screen instructions: From 5751f2f133a3a6e06919435eced97233365dba4d Mon Sep 17 00:00:00 2001 From: samvaio Date: Fri, 16 Dec 2016 20:42:26 +0530 Subject: [PATCH 2/3] Windows Auto Restart with Update --- scripts/NadekoAutoRun.bat | 63 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 61 insertions(+), 2 deletions(-) diff --git a/scripts/NadekoAutoRun.bat b/scripts/NadekoAutoRun.bat index af1b87d5..0def6680 100644 --- a/scripts/NadekoAutoRun.bat +++ b/scripts/NadekoAutoRun.bat @@ -1,6 +1,65 @@ @ECHO off @TITLE NadekoBot -:auto + + +SET root=%~dp0 +CD /D %root% + +CLS +ECHO Welcome to NadekoBot Auto Restart and Update! +ECHO -------------------------------------------- +ECHO 1.Auto Restart and Update with Dev Build (latest) +ECHO 2.Auto Restart and Update with Stable Build +ECHO 3.Run Auto Restart normally without Updating (will restart faster) +ECHO 4.To exit +ECHO. + +CHOICE /C 1234 /M "Enter your choice:" + +:: Note - list ERRORLEVELS in decreasing order +IF ERRORLEVEL 4 GOTO exit +IF ERRORLEVEL 3 GOTO autorun +IF ERRORLEVEL 2 GOTO stablear +IF ERRORLEVEL 1 GOTO latestar + +:latestar +ECHO Auto Restart and Update with Dev Build (latest) +ECHO Bot will auto update on every restart! +timeout /t 3 CD /D %~dp0NadekoBot\src\NadekoBot dotnet run --configuration Release -goto auto +ECHO Updating... +timeout /t 3 +SET "FILENAME=%~dp0\Latest.bat" +bitsadmin.exe /transfer "Downloading Nadeko (Latest)" /priority high https://github.com/Kwoth/NadekoBot/raw/master/scripts/Latest.bat "%FILENAME%" +ECHO NadekoBot Dev Build (latest) downloaded. +SET root=%~dp0 +CD /D %root% +CALL Latest.bat +GOTO latestar + +:stablear +ECHO Auto Restart and Update with Stable Build +ECHO Bot will auto update on every restart! +timeout /t 3 +CD /D %~dp0NadekoBot\src\NadekoBot +dotnet run --configuration Release +ECHO Updating... +timeout /t 3 +SET "FILENAME=%~dp0\Stable.bat" +bitsadmin.exe /transfer "Downloading Nadeko (Stable)" /priority high https://github.com/Kwoth/NadekoBot/raw/master/scripts/Stable.bat "%FILENAME%" +ECHO NadekoBot Stable build downloaded. +SET root=%~dp0 +CD /D %root% +CALL Stable.bat +GOTO stablear + +:autorun +ECHO Bot will not auto update on every restart! +timeout /t 3 +CD /D %~dp0NadekoBot\src\NadekoBot +dotnet run --configuration Release +goto autorun + +:Exit +CALL NadekoInstaller.bat From d1412fd71f33b33fe3098fd167166ffbee18b898 Mon Sep 17 00:00:00 2001 From: samvaio Date: Fri, 16 Dec 2016 20:49:16 +0530 Subject: [PATCH 3/3] Auto Run now auto deletes --- scripts/NadekoAutoRun.bat | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/NadekoAutoRun.bat b/scripts/NadekoAutoRun.bat index 0def6680..90d88f4a 100644 --- a/scripts/NadekoAutoRun.bat +++ b/scripts/NadekoAutoRun.bat @@ -55,6 +55,7 @@ CALL Stable.bat GOTO stablear :autorun +ECHO Normal Auto Restart ECHO Bot will not auto update on every restart! timeout /t 3 CD /D %~dp0NadekoBot\src\NadekoBot @@ -62,4 +63,7 @@ dotnet run --configuration Release goto autorun :Exit +SET root=%~dp0 +CD /D %root% +del NadekoAutoRun.bat CALL NadekoInstaller.bat