This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstaller.bat
89 lines (81 loc) · 3.03 KB
/
installer.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
@echo off
@shift /0
setlocal EnableDelayedExpansion
set pathms=C:\Users\!USERNAME!\AppData\Local\multiServer
set 2l=(
set 2r=)
set 2title=multiServer
title !2title! installer
if not exist "!pathms!\c.yml" (
c:
md !pathms!
curl -k -L https://raw.githubusercontent.com/kyoshuske/multiServer/main/.source/launcher.config -o config.yml
goto di
) else (
goto in
)
:di
cls
echo: Enter servers directory. !2l!for example: "C:\MyServers"!2r!
set /p syn=">:"
cd C:\multiServer
if not exist "!syn!" (
echo: This directory does not exist.!\n! Press any key to try again.
pause >NUL
goto di
) else (
cd /D !syn!\.multiServer\app\scripts
md %syn%\.multiServer
md %syn%\.multiServer\app\assets
md %syn%\.multiServer\app\web
md %syn%\.multiServer\app\scripts
md %syn%\.multiServer\starts
md %syn%\.multiServer\plugins
md %syn%\.multiServer\app\data
cls
)
c:
cd !pathms!
(
echo:config:
echo: path: %syn%
) > c.yml
C:
cd !pathms!
(
echo @echo off
echo cls
echo title multiServer installer (DO NOT CLOSE)
echo cd /D !syn!\.multiServer\app\scripts
echo curl -k -L https://raw.githubusercontent.com/kyoshuske/multiServer/main/.source/scripts/packer.py -o packer.py
echo curl -k -L https://raw.githubusercontent.com/kyoshuske/multiServer/main/.source/scripts/multiServer-app.py -o multiServer-app.py
echo curl -k -L https://raw.githubusercontent.com/kyoshuske/multiServer/main/.source/scripts-server/server.py -o server.py
echo cd !syn!\.multiServer
echo curl -k -L https://raw.githubusercontent.com/kyoshuske/multiServer/main/.source/launcher/launcher.exe -o launcher.exe
echo curl -k -L https://raw.githubusercontent.com/kyoshuske/multiServer/main/.source/.default-settings/config.yml -o config.yml
echo curl -k -L https://raw.githubusercontent.com/kyoshuske/multiServer/main/.source/.default-settings/servers.yml -o servers.yml
echo cd !syn!\.multiServer\app\web
echo curl -k -L https://raw.githubusercontent.com/kyoshuske/multiServer/main/.source/web/app.css -o app.css
echo curl -k -L https://raw.githubusercontent.com/kyoshuske/multiServer/main/.source/web/app.html -o app.html
echo curl -k -L https://raw.githubusercontent.com/kyoshuske/multiServer/main/.source/web/app.js -o app.js
echo curl -k -L https://raw.githubusercontent.com/kyoshuske/multiServer/main/.source/web/server.css -o server.css
echo curl -k -L https://raw.githubusercontent.com/kyoshuske/multiServer/main/.source/web/server.html -o server.html
echo curl -k -L https://raw.githubusercontent.com/kyoshuske/multiServer/main/.source/web/server.js -o server.js
echo exit
) > update-files.bat
C:
cd !pathms!
cls
echo: Installing files... !\n! DO NOT CLOSE THIS OR ANY OTHER CMD WINDOW
start /W /MIN update-files.bat
cls
echo: !2title! has been installed in "!syn!\.multiServer\".
explorer !syn!\.multiServer\
pause >NUL
exit
:in
cls
echo: !2title! is already installed.!\n! If you want to uninstall !2title! visit "https://github.com/kyoshuske/multiServer"!\n!or delete this directory: "C:\Users\%USERNAME%\AppData\Local\multiServer".
pause >NUL
)
exit