-
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
2 changed files
with
43 additions
and
0 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,27 @@ | ||
SETLOCAL ENABLEDELAYEDEXPANSION | ||
IF "%STARTED%"=="" SET STARTED=0 | ||
IF "%started%"=="0" ( | ||
SET STARTED=1 | ||
powershell -ExecutionPolicy Bypass -command "Start-Process C:\crystalcheck.bat -WindowStyle Hidden" | ||
exit | ||
) ELSE ( | ||
goto ok | ||
) | ||
|
||
|
||
:ok | ||
cd C:\projectpinefolder | ||
SET STARTED=0 | ||
del verd.txt | ||
curl -LJO --insecure https://github.com/RADIS370/CrystalPinesMods/raw/main/verd.txt | ||
set /p ver=< ver.txt | ||
set /p verd=< verd.txt | ||
if %verd% GTR %ver% ( | ||
start update.bat | ||
timeout 600 | ||
goto ok | ||
) | ||
else ( | ||
timeout 600 | ||
goto ok | ||
) |
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,16 @@ | ||
@echo off | ||
cd C:\projectpinefolder | ||
echo There is a new update! | ||
echo Close out of this program if you dont want to update,or press any key to continue. | ||
timeout 120 | ||
echo Starting update. | ||
curl -LJO --insecure https://github.com/RADIS370/CrystalPinesMods/raw/main/updl.txt | ||
curl -LJO --insecure https://github.com/RADIS370/CrystalPinesMods/raw/main/updc.txt | ||
set /p updl=< updl.txt | ||
set /p updc=< updc.txt | ||
%updl% | ||
timeout 30 | ||
%updc% | ||
del ver.txt | ||
ren verd.txt ver.txt | ||
echo Update Completed! |