This repository has been archived by the owner on May 8, 2024. It is now read-only.
-
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.
- Loading branch information
Showing
13 changed files
with
65 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
@ECHO OFF | ||
|
||
if exist "%userprofile%\Documents\Pikakid98 Launcher" ( | ||
move "%userprofile%\Documents\Pikakid98 Launcher" "Data" | ||
GOTO Continue | ||
) else ( | ||
GOTO Continue | ||
) | ||
|
||
:Continue | ||
|
||
if exist "Git" ( rmdir /S /Q "Git" ) | ||
|
||
if exist "%tmp%\PL-Temp" ( rmdir /S /Q "%tmp%\PL-Temp" ) | ||
|
||
if exist "Data" ( | ||
GOTO Main | ||
) else ( | ||
mkdir "Data" | ||
GOTO Main | ||
) | ||
|
||
:Main | ||
mkdir "Git" | ||
|
||
mkdir "%tmp%\PL-Temp" | ||
ECHO Set objWinHttp = CreateObject("WinHttp.WinHttpRequest.5.1") >> %tmp%\PL-Temp\git.vbs | ||
ECHO. >> %tmp%\PL-Temp\git.vbs | ||
ECHO URL = "https://github.com/pikakid98/pikakid98-launcher-data/releases/download/data-dev/Git-dev_18-8-2022.7z" >> %tmp%\PL-Temp\git.vbs | ||
ECHO objWinHttp.open "GET", URL, False >> %tmp%\PL-Temp\git.vbs | ||
ECHO objWinHttp.send "" >> %tmp%\PL-Temp\git.vbs | ||
ECHO. >> %tmp%\PL-Temp\git.vbs | ||
ECHO SaveBinaryData "%tmp%\PL-Temp\Git-dev_18-8-2022.7z",objWinHttp.responseBody >> %tmp%\PL-Temp\git.vbs | ||
ECHO. >> %tmp%\PL-Temp\git.vbs | ||
ECHO Function SaveBinaryData(FileName, Data) >> %tmp%\PL-Temp\git.vbs | ||
ECHO. >> %tmp%\PL-Temp\git.vbs | ||
ECHO ' adTypeText for binary = 1 >> %tmp%\PL-Temp\git.vbs | ||
ECHO Const adTypeText = 1 >> %tmp%\PL-Temp\git.vbs | ||
ECHO Const adSaveCreateOverWrite = 2 >> %tmp%\PL-Temp\git.vbs | ||
ECHO. >> %tmp%\PL-Temp\git.vbs | ||
ECHO ' Create Stream object >> %tmp%\PL-Temp\git.vbs | ||
ECHO Dim BinaryStream >> %tmp%\PL-Temp\git.vbs | ||
ECHO Set BinaryStream = CreateObject("ADODB.Stream") >> %tmp%\PL-Temp\git.vbs | ||
ECHO. >> %tmp%\PL-Temp\git.vbs | ||
ECHO ' Specify stream type - we want To save Data/string data. >> %tmp%\PL-Temp\git.vbs | ||
ECHO BinaryStream.Type = adTypeText >> %tmp%\PL-Temp\git.vbs | ||
ECHO. >> %tmp%\PL-Temp\git.vbs | ||
ECHO ' Open the stream And write binary data To the object >> %tmp%\PL-Temp\git.vbs | ||
ECHO BinaryStream.Open >> %tmp%\PL-Temp\git.vbs | ||
ECHO BinaryStream.Write Data >> %tmp%\PL-Temp\git.vbs | ||
ECHO. >> %tmp%\PL-Temp\git.vbs | ||
ECHO ' Save binary data To disk >> %tmp%\PL-Temp\git.vbs | ||
ECHO BinaryStream.SaveToFile FileName, adSaveCreateOverWrite >> %tmp%\PL-Temp\git.vbs | ||
ECHO. >> %tmp%\PL-Temp\git.vbs | ||
ECHO End Function >> %tmp%\PL-Temp\git.vbs | ||
|
||
START /wait "" "%tmp%\PL-Temp\git.vbs" | ||
|
||
7za.exe x "%tmp%\PL-Temp\Git-dev_18-8-2022.7z" -o"Git" |
Binary file not shown.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.