Repository navigation
Expand file tree
/
Copy pathscript.bat
More file actions
72 lines (62 loc) · 1.74 KB
/
Copy pathscript.bat
File metadata and controls
72 lines (62 loc) · 1.74 KB
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
@echo off
set "DEFAULT_VERSION=26.2"
if "%1" == "" call :update %DEFAULT_VERSION% & goto :EOF
if /i "%1" == "update-packwiz" call :update-packwiz & goto :EOF
if /i "%1" == "export" call :export %DEFAULT_VERSION% & goto :EOF
if /i "%1" == "update" call :update %DEFAULT_VERSION% & goto :EOF
if /i "%1" == "update-loader" call :update-loader %DEFAULT_VERSION% & goto :EOF
if /i "%1" == "refresh" call :refresh_all & goto :EOF
if /i "%1" == "add" call :add %DEFAULT_VERSION% %2 & goto :EOF
if "%2" == "" call :update %1 & goto :EOF
if /i "%2" == "update-packwiz" call :update-packwiz & goto :EOF
if /i "%2" == "export" call :export %1 & goto :EOF
if /i "%2" == "update" call :update %1 & goto :EOF
if /i "%2" == "update-loader" call :update-loader %1 & goto :EOF
if /i "%2" == "refresh" call :refresh %1 & goto :EOF
if /i "%2" == "add" call :add %1 %3 & goto :EOF
goto :EOF
:update-packwiz
go install github.com/packwiz/packwiz@latest
::cls
echo Packwiz has been Updated
goto :EOF
:export
if not exist build\fabric\ mkdir build\fabric\
pushd versions\fabric\%1 && (
packwiz mr export
popd
)
move versions\fabric\%1\*.mrpack build\fabric\
goto :EOF
:update
pushd versions\fabric\%1 && (
packwiz update --all
popd
)
goto :EOF
:update-loader
pushd versions\fabric\%1 && (
packwiz migrate loader latest
popd
)
goto :EOF
:refresh_all
for /d %%d in (versions\fabric\*) do (
pushd %%d && (
packwiz refresh
popd
)
)
goto :EOF
:refresh
pushd versions\fabric\%1 && (
packwiz refresh
popd
)
goto :EOF
:add
pushd versions\fabric\%1 && (
packwiz mr add %2
popd
)
goto :EOF