Skip to content
This repository was archived by the owner on Nov 7, 2018. It is now read-only.

Commit 9864892

Browse files
author
mihail-mojsoski
committed
Updated the scripts.
1 parent 5d87ad8 commit 9864892

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

install-current.bat

+25-1
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,73 @@
11
@echo off
2+
:: Check if no-title has been switched on.
23
if "%~1" NEQ "--no-title" title StrobeOS Installation Script
4+
5+
:: Check if Cosmos has been installed, if true, uninstall it.
36
set errorlevel=0
47
if exist "%appdata%\Cosmos User Kit\unins000.exe" call "%appdata%\Cosmos User Kit\unins000"
58
if "%errorlevel%" == "0" goto :installNew
69
echo Install has failed because there was an error with the uninstaller.
710
goto :End
811

12+
913
:installNew
14+
:: Check if the Cosmos installation files are there, if they are, install them.
1015
echo Starting installation of Cosmos...
1116
if exist "cosmos\install-VS2015.bat" goto installreal
17+
18+
:: If not, clone the git repo and get them.
1219
echo Cosmos wasn't found!
1320
goto Clone
1421

1522
:Clone
23+
:: Check for the "os" folder and delete it.
1624
set back=%cd%
1725
cd ..
1826
if not exist "os" cd %back%
1927
if exist "os" rmdir "os" /S /Q
28+
29+
:: Check for git
2030
git --version >nul 2>&1 && (
2131
echo Git found, Trying to git clone...
2232
) || (
2333
echo Git wasn't found in path.
2434
goto End
2535
)
36+
37+
:: Clone and update the submodules
2638
git clone https://github.com/StrobeOS/os.git
2739
cd os
2840
git submodule update --init --recursive
41+
42+
:: Go back to the installer
2943
goto installNew
3044

3145
:installreal
46+
:: Actually install cosmos
3247
cd cosmos
3348
call "install-VS2015.bat"
3449
call :waitUntilFinish
50+
51+
:: End the program
3552
echo Installation finished, feel free to modify!
3653
goto End
3754

3855
:waitUntilFinish
56+
:: Wait untill finish, not really working, but that's what i got.
3957
echo Waiting installation to finish...
4058
:internal
59+
:: Check for the uninstaller.
4160
if exist "%appdata%\Cosmos User Kit\unins000.exe" goto out
4261
timeout /nobreak /t 1 > nul
62+
:: Loop.
4363
goto internal
4464
:out
65+
:: Go to the real end
4566
goto realEnd
4667

68+
:: The pause end
4769
:End
4870
pause
49-
:realEnd
71+
72+
:: The real end
73+
:realEnd

update-windows.bat

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
@echo off
2+
:: The Strobe update script
3+
title StrobeOS Update Script
4+
5+
:: Check for git
6+
git --version >nul 2>&1 && (
7+
echo Git found, Trying to update...
8+
) || (
9+
echo Git wasn't found in path.
10+
goto End
11+
)
12+
13+
:: Update the repo
14+
git pull
15+
16+
:: Update the modules
17+
git submodule update --recursive --remote
18+
19+
:: Install the current files
20+
call install-current.bat --no-title
21+
goto End
22+
23+
:: Pause end
24+
:End
25+
pause

0 commit comments

Comments
 (0)