Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
RADIS370 authored Oct 11, 2024
1 parent 9af2173 commit c6d66cd
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
27 changes: 27 additions & 0 deletions crystalchecker.bat
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
)
16 changes: 16 additions & 0 deletions updater.bat
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!

0 comments on commit c6d66cd

Please sign in to comment.