-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
start.bat
55 lines (48 loc) · 2.64 KB
/
start.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
@echo off
title Shioru
chcp 65001
cls
echo ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
echo ┃ RUNNING VIA START.BAT ┃
echo ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
echo ┃ ┃
echo ┃ Running this script will automatically update ┃
echo ┃ and install all necessary components. If you ┃
echo ┃ don't want to continue, you can Ctrl + C ┃
echo ┃ or ^^C. ┃
echo ┃ ┃
echo ┃ Will install: winget, Git, ┃
echo ┃ Java(TM).SE.Development.Kit, Python.3.12, ┃
echo ┃ FFmpeg, Visual.Studio.BuildTools.2022 and ┃
echo ┃ Node.js.LTS ┃
echo ┃ ┃
echo ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
echo.
if '%1' neq 'am_admin' (
powershell start -verb runas '%0' am_admin & exit /b
)
echo Verifying installation of package manager...
call winget --version >nul 2>&1
if %errorlevel% neq 0 (
powershell Add-AppxPackage -RegisterByFamilyName -MainPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe || (
powershell Write-Information "Downloading WinGet and its dependencies..."
powershell Invoke-WebRequest -Uri https://aka.ms/getwinget -OutFile Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
powershell Invoke-WebRequest -Uri https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile Microsoft.VCLibs.x64.14.00.Desktop.appx
powershell Invoke-WebRequest -Uri https://github.com/microsoft/microsoft-ui-xaml/releases/download/v2.8.6/Microsoft.UI.Xaml.2.8.x64.appx -OutFile Microsoft.UI.Xaml.2.8.x64.appx
powershell Add-AppxPackage Microsoft.VCLibs.x64.14.00.Desktop.appx
powershell Add-AppxPackage Microsoft.UI.Xaml.2.8.x64.appx
powershell Add-AppxPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
)
)
echo.
echo Updating and installing required components...
call winget install Git Java(TM).SE.Development.Kit Python.3.12 FFmpeg Visual.Studio.BuildTools.2022 Node.js.LTS
echo.
echo Updating NPM to the latest version...
call npm install -g npm@latest
echo.
echo Updating and installing depandancies...
call npm install
echo.
echo Starting up the system...
call npm start