Last active
March 28, 2024 17:16
-
-
Save YukiGasai/e26bda9ef3072590ac550cd62f391634 to your computer and use it in GitHub Desktop.
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
@echo off | |
:: Create the _dev folder | |
echo Creating the _dev folder | |
mkdir C:\_dev | |
echo _dev folder created | |
:: Open the browser at the Github Token page | |
start "" "https://github.com/settings/tokens/new" | |
:: Prompt for Github username and private token | |
set /p token=Enter your Github private token: | |
echo Downloading L7Tools | |
powershell -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri 'https://github.com/YukiGasai/L7Tools/archive/refs/heads/main.zip' -Headers @{'Authorization'='token %token%'} -OutFile 'main.zip'" | |
:: Unzip the L7Tools folder and move it to the _dev folder | |
echo Unzipping L7Tools | |
tar -xf main.zip | |
echo L7Tools unzipped | |
echo Moving L7Tools to the _dev folder | |
move L7Tools-main C:\_dev\L7Tools | |
del main.zip | |
echo L7Tools moved | |
::Start the install script | |
echo Starting the install script | |
cd C:\_dev\L7Tools | |
call install.bat %* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment