Skip to content
This repository was archived by the owner on Jun 30, 2026. It is now read-only.

Commit ae83fb1

Browse files
authored
Update shadowos.bat
1 parent a499605 commit ae83fb1

1 file changed

Lines changed: 37 additions & 15 deletions

File tree

shadowos.bat

Lines changed: 37 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ echo 1. Show you the TOS.
2020
pause
2121
cls
2222
title ShadowOS's TOS.
23-
powershell "irm https://raw.githubusercontent.com/ShadowElixir/ShadowOS/main/UserServices/Moose/tos.txt"
23+
powershell "irm https://raw.githubusercontent.com/textSoftware/UserServices/main/Production/tos.txt"
2424
echo.
2525
echo If you do not agree with the TOS, please close ShadowOS now. By pressing any key from this point, you agree to the TOS shown above.
2626
pause
@@ -29,8 +29,6 @@ goto app.shadow.home
2929
:app.shadow.home
3030
cls
3131
title %username%'s HOME.
32-
powershell "irm https://raw.githubusercontent.com/ShadowElixir/ShadowOS/main/UserServices/pcOS/messageboard-home.txt"
33-
powershell "irm https://raw.githubusercontent.com/ShadowElixir/ShadowOS/main/UserServices/pcOS/home-ad.txt"
3432
echo.
3533
echo Press 1 and then enter to open System Settings.
3634
echo Press 2 and then enter to open Message Board.
@@ -47,7 +45,7 @@ if %function.shadow.settings.option% == exit exit
4745
cls
4846
title ShadowOS Settings
4947
echo Welcome to Settings.
50-
echo You're currently running ShadowOS 3.4s.
48+
echo You're currently running ShadowOS 4s.
5149
echo.
5250
echo Press 1 and then enter to enter setup.
5351
echo Press 2 and then enter for Personalisation.
@@ -114,7 +112,7 @@ goto app.shadow.home
114112
:app.shadow.messages
115113
echo ShadowOS Message Board:
116114
echo.
117-
powershell "irm https://raw.githubusercontent.com/ShadowElixir/ShadowOS/main/UserServices/pcOS/messageboard.txt"
115+
start "" https://github.com/ShadowElixir/ShadowOS/discussions
118116
pause
119117
goto app.shadow.home
120118
:app.shadow.filemanager
@@ -193,15 +191,39 @@ goto app.shadow.filemanager
193191
:app.shadow.update
194192
cls
195193
title ShadowOS Update
196-
echo You are currently running version:
197-
echo 3.4s
198-
echo.
199-
echo The latest version is:
200-
powershell "irm https://raw.githubusercontent.com/ShadowElixir/ShadowOS/main/UserServices/pcOS/latestversion.txt"
201-
echo.
202-
echo Whats new in the latest version:
203-
powershell "irm https://raw.githubusercontent.com/ShadowElixir/ShadowOS/main/UserServices/pcOS/latestversiondesc.txt"
204-
echo.
205-
echo If you've launched this application using VariousScripts, you are already running the latest version of ShadowOS.
194+
setlocal
195+
196+
set "psScript=%temp%\update-ShadowOS.ps1"
197+
198+
(
199+
echo.function Update-ShadowOS {
200+
echo. if (^$global:canConnectToGitHub -eq $false^) {
201+
echo. return
202+
echo. }
203+
echo.
204+
echo. try {
205+
echo. ^$updateNeeded = $false
206+
echo. ^$currentVersion = 'shadowos-4s'
207+
echo. ^$gitHubApiUrl = "https://api.github.com/repos/ShadowElixir/ShadowOS/releases/latest"
208+
echo. ^$latestReleaseInfo = Invoke-RestMethod -Uri ^$gitHubApiUrl
209+
echo. ^$latestVersion = ^$latestReleaseInfo.tag_name.Trim('v'^)
210+
echo. if (^$currentVersion -lt ^$latestVersion^) {
211+
echo. ^$updateNeeded = $true
212+
echo. }
213+
echo.
214+
echo. if (^$updateNeeded^) {
215+
echo. Write-Output "Update available, latest version is ^$latestVersion"
216+
echo. }
217+
echo. } catch {
218+
echo. Write-Error "Failed to check for updates ShadowOS. Error: ^$_"
219+
echo. }
220+
echo.}
221+
echo.
222+
echo.Update-ShadowOS
223+
) > "%psScript%"
224+
225+
powershell -ExecutionPolicy Bypass -File "%psScript%"
226+
227+
endlocal
206228
pause
207229
goto app.shadow.home

0 commit comments

Comments
 (0)