forked from SH4FS0c13ty/TigerXDragon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstage0.bat
44 lines (44 loc) · 2.88 KB
/
stage0.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
@echo off
title Toradora! Portable Translation Toolkit Stage 0 by SH4FS0c13ty
chcp 65001
cls
echo.
echo ████████╗██╗ ██████╗ ███████╗██████╗ ██╗ ██╗ ██████╗ ██████╗ █████╗ ██████╗ ██████╗ ███╗ ██╗
echo ╚══██╔══╝██║██╔════╝ ██╔════╝██╔══██╗ ╚██╗██╔╝ ██╔══██╗██╔══██╗██╔══██╗██╔════╝ ██╔═══██╗████╗ ██║
echo ██║ ██║██║ ███╗█████╗ ██████╔╝ ╚███╔╝ ██║ ██║██████╔╝███████║██║ ███╗██║ ██║██╔██╗ ██║
echo ██║ ██║██║ ██║██╔══╝ ██╔══██╗ ██╔██╗ ██║ ██║██╔══██╗██╔══██║██║ ██║██║ ██║██║╚██╗██║
echo ██║ ██║╚██████╔╝███████╗██║ ██║ ██╔╝ ██╗ ██████╔╝██║ ██║██║ ██║╚██████╔╝╚██████╔╝██║ ╚████║
echo ╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝
echo.
echo Toradora! Portable Translation Toolkit Stage 0 by SH4FS0c13ty
echo Stage 0 will install the requirements for the toolkit.
echo.
set /p start=Start stage 0 (y/n)?
if /i "%start%" NEQ "y" exit
echo.
echo Installing .Net Framework 3.5 ...
DISM /online /enable-feature /featurename:NetFx3
echo.
echo Installing .Net Framework 4.0 ...
DISM /online /enable-feature /featurename:NetFx4-AdvSrvs
echo.
echo Enabling Windows Subsystem for Linux ...
echo Please reboot when prompted and re-execute stage 0
DISM /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux
echo.
set /p start=Did your computer reboot (y/n)?
if /i "%start%" NEQ "y" shutdown /r /t 0
echo Installing Debian on Windows ...
echo.
curl.exe -L -o C:\debian.appx https://aka.ms/wsl-debian-gnulinux
powershell.exe -Command "Rename-Item C:\debian.appx C:\debian.zip"
powershell.exe -Command "Expand-Archive C:\debian.zip C:\debian"
setx path "%path%;c:\debian"
C:\debian\debian.exe install --root
echo Updating and upgrading Debian packages ...
bash -c "apt update"
bash -c "apt -y full-upgrade"
echo Installing requirements ...
bash -c "apt -y install translate-toolkit sed"
echo Done!
pause