New Init
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
setlocal
|
||||
|
||||
set "init=%~dp0\..\settings\init.bat"
|
||||
call %init%
|
||||
|
||||
for %%f in ("%configurations-all%\*.bat") do (
|
||||
echo Running %%f
|
||||
call "%%f"
|
||||
)
|
||||
for %%f in ("%configurations-user%\*.bat") do (
|
||||
echo Running %%f
|
||||
call "%%f"
|
||||
)
|
||||
|
||||
endlocal
|
||||
@@ -0,0 +1,21 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
set "init=%~dp0\..\settings\init.bat"
|
||||
call %init%
|
||||
|
||||
if not exist "%packages-user-lists%" (
|
||||
mkdir "%packages-user-lists%"
|
||||
)
|
||||
|
||||
:choco-list
|
||||
start cmd /c choco export "%packages-user-lists%\choco.config" --include-version-numbers
|
||||
|
||||
:msstore-list
|
||||
start cmd /c winget export -o "%packages-user-lists%\msstore.json" -s "msstore" --include-versions
|
||||
|
||||
:winget-list
|
||||
start cmd /c winget export -o "%packages-user-lists%\winget.json" -s "winget" --include-versions
|
||||
|
||||
endlocal
|
||||
exit /B
|
||||
@@ -0,0 +1,11 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
set "init=%~dp0\..\settings\init.bat"
|
||||
call %init%
|
||||
|
||||
for %%f in ("%mounts%\*.bat") do (
|
||||
echo Running %%f
|
||||
call "%%f"
|
||||
)
|
||||
endlocal
|
||||
@@ -0,0 +1,17 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
set "init=%~dp0\..\settings\init.bat"
|
||||
call %init%
|
||||
|
||||
where choco >nul 2>nul
|
||||
if %errorlevel% neq 0 (
|
||||
echo Chocolatey installing...
|
||||
powershell -ExecutionPolicy Bypass -File "%chocolatey%"
|
||||
) else (
|
||||
echo Chocolatey has already installed.
|
||||
)
|
||||
|
||||
call %packages-installer%
|
||||
|
||||
endlocal
|
||||
@@ -0,0 +1,12 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
set "init=%~dp0\..\settings\init.bat"
|
||||
call %init%
|
||||
|
||||
for %%f in ("test\*.bat") do (
|
||||
echo Running %%f
|
||||
call "%%f"
|
||||
)
|
||||
|
||||
endlocal
|
||||
Reference in New Issue
Block a user