forked from petersasi/deluge2-win-build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to using 7zip of MSYS2, and other build polishing.
- Loading branch information
Showing
13 changed files
with
69 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
@call %~dp0\printc "Save the original PATH (to keep from growing on many runs) add MSYS2 /usr/bin to the front of the PATH" | ||
@call %~dp0\printc info "Save the original PATH (to keep from growing on many runs) add MSYS2 /usr/bin to the front of the PATH" | ||
@set OLDPATH=%PATH% | ||
@set PATH=C:\msys64\usr\bin;%PATH% | ||
@set PATH=C:\msys64\usr\bin;C:\msys64\usr\lib\p7zip;%PATH% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,38 @@ | ||
@rem This script is Copyright | ||
@rem 2020 Peter Sasi user of the Deluge Forum https://forum.deluge-torrent.org/ | ||
|
||
@setlocal | ||
|
||
@for /F "tokens=1,2 delims=#" %%a ^ | ||
in ('"prompt #$H#$E# & echo on & for %%b in (1) do rem"') ^ | ||
do @set ESC=%%b | ||
|
||
@goto %~1 2>NUL || @echo %ESC%[7m%~1%ESC%[0m | ||
|
||
:success | ||
@call :initprefix SUCCESS | ||
:green | ||
@shift | ||
@echo %ESC%[92m%ESC%[7m%~1%ESC%[0m | ||
@exit /B 0 | ||
@shift /1 | ||
@echo %ESC%[92m%ESC%[7m%prefixStr%%~1%ESC%[0m | ||
@goto common | ||
|
||
:error | ||
@call :initprefix ERROR | ||
:red | ||
@shift | ||
@echo %ESC%[41m%~1%ESC%[0m | ||
@exit /B 0 | ||
@shift /1 | ||
@echo %ESC%[41m%prefixStr%%~1%ESC%[0m | ||
@goto common | ||
|
||
:info | ||
@call :initprefix INFO | ||
:blue | ||
@shift /1 | ||
@echo %ESC%[34m%prefixStr%%~1%ESC%[0m | ||
@goto common | ||
|
||
:common | ||
@set prefixStr= | ||
@goto :EOF | ||
|
||
:initprefix | ||
@set /A msgCounter+=1 | ||
@set prefixStr=#%msgCounter%[%~1]: | ||
@goto :EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
@call %~dp0\printc "Restoring the original PATH so that it does not keep growing on many runs." | ||
@call %~dp0\printc info "Restoring the original PATH so that it does not keep growing on many runs." | ||
@set PATH=%OLDPATH% | ||
@set msgCounter="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters