@@ -20,7 +20,7 @@ echo 1. Show you the TOS.
2020pause
2121cls
2222title 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"
2424echo .
2525echo 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.
2626pause
@@ -29,8 +29,6 @@ goto app.shadow.home
2929:app.shadow.home
3030cls
3131title %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"
3432echo .
3533echo Press 1 and then enter to open System Settings.
3634echo Press 2 and then enter to open Message Board.
@@ -47,7 +45,7 @@ if %function.shadow.settings.option% == exit exit
4745cls
4846title ShadowOS Settings
4947echo Welcome to Settings.
50- echo You're currently running ShadowOS 3. 4s.
48+ echo You're currently running ShadowOS 4s.
5149echo .
5250echo Press 1 and then enter to enter setup.
5351echo Press 2 and then enter for Personalisation.
@@ -114,7 +112,7 @@ goto app.shadow.home
114112:app.shadow.messages
115113echo ShadowOS Message Board:
116114echo .
117- powershell " irm https://raw.githubusercontent. com/ShadowElixir/ShadowOS/main/UserServices/pcOS/messageboard.txt "
115+ start " " https://github. com/ShadowElixir/ShadowOS/discussions
118116pause
119117goto app.shadow.home
120118:app.shadow.filemanager
@@ -193,15 +191,39 @@ goto app.shadow.filemanager
193191:app.shadow.update
194192cls
195193title 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
206228pause
207229goto app.shadow.home
0 commit comments