-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path_build20.sh
executable file
·210 lines (170 loc) · 4.71 KB
/
_build20.sh
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
#!/bin/bash
cd "$( dirname "$0" )"
rm -Rf target
mkdir target
cd target
echo "** BUILDING DEFAULT **"
mkdir default
cd default
cp -R ../../src/default/* .
# Negative Space
cp -R ../../src/space/* .
# Halloween
../../merge_folder.php ../../src/halloween .
# Copy glyph icons
cp -R ../../src/fonticons/assets/magic/* ./assets/magic/
php ../../merge_fonts.php ../../src/fonticons/assets/minecraft/font assets/minecraft/font/default.json
mv assets/minecraft/font/default.json assets/minecraft/font/magic.json
# Clean and zip
find . -name ".DS_Store" -type f -delete
zip -q -X -r ../Magic-RP-1.20.zip *
cd ..
if [ -n "$1" ]
then
exit
fi
echo "** BUILDING SKULLS **"
mkdir default-skulls
cd default-skulls
mkdir assets
cd assets
cp -R ../../../src/skulls/assets/* .
cd ..
cp -R ../default/* .
rm -R assets/magic/textures/icons/spells
rm -R assets/magic/textures/icons/brushes
rm -R assets/magic/models/icons/spells
rm -R assets/magic/models/icons_disabled/spells
rm -R assets/magic/models/icons/brushes
rm assets/minecraft/models/item/diamond_axe.json
rm assets/minecraft/models/item/diamond_hoe.json
find . -name ".DS_Store" -type f -delete
zip -q -X -r ../Magic-skulls-RP-1.20.zip *
cd ..
echo "** BUILDING FLAT SKULLS **"
mkdir skulls
cd skulls
mkdir assets
cp -R ../../src/skulls/* .
find . -name ".DS_Store" -type f -delete
zip -q -X -r ../flat-skulls.zip *
cd ..
echo "** BUILDING PAINTERLY **"
mkdir painterly
cd painterly
cp -R ../default/* .
cp -R ../../src/painterly/* .
find . -name ".DS_Store" -type f -delete
zip -q -X -r ../Magic-painterly-RP-1.20.zip *
cd ..
echo "** BUILDING LOW-RES **"
mkdir lowres
cd lowres
cp -R ../default/* .
cp -R ../../src/lowres/* .
find . -name ".DS_Store" -type f -delete
zip -q -X -r ../Magic-lowres-RP-1.20.zip *
cd ..
echo "** BUILDING POTTER **"
mkdir potter
cd potter
cp -R ../default/* .
cp -R ../../src/potter/* .
find . -name ".DS_Store" -type f -delete
zip -q -X -r ../Magic-potter-RP-1.20.zip *
cd ..
echo "** BUILDING WAR **"
mkdir war
cd war
cp -R ../../src/war/* .
sed -e '$ d' ../../src/war/assets/minecraft/sounds.json > assets/minecraft/sounds.json
echo , >> assets/minecraft/sounds.json
tail -n +2 ../../src/war/assets/minecraft/sound-overrides.json >> assets/minecraft/sounds.json
rm assets/minecraft/sound-overrides.json
find . -name ".DS_Store" -type f -delete
zip -q -X -r ../Magic-war-RP-1.20.zip *
cd ..
echo "** BUILDING ROBES **"
mkdir robes
cd robes
cp -R ../default/* .
mkdir assets/minecraft/textures/
cp -R ../../src/chainmail/assets/minecraft/textures/* assets/minecraft/textures/
find . -name ".DS_Store" -type f -delete
zip -q -X -r ../Magic-robes-RP-1.20.zip *
cd ..
echo "** BUILDING HTTYD **"
mkdir httyd
cd httyd
cp -R ../../src/httyd/* .
find . -name ".DS_Store" -type f -delete
zip -q -X -r ../Magic-httyd-RP-1.20.zip *
cd ..
echo "** BUILDING BRAWL **"
mkdir brawl
cd brawl
cp -R ../../src/brawl/* .
find . -name ".DS_Store" -type f -delete
zip -q -X -r ../Magic-brawl-RP-1.20.zip *
cd ..
echo "** BUILDING ALL **"
mkdir all
cd all
cp -R ../robes/* .
cp -R ../../src/war/assets/magic/* assets/magic/
cp ../../src/war/assets/minecraft/models/item/diamond_pickaxe.json assets/minecraft/models/item/
sed -e '$ d' ../../src/default/assets/minecraft/sounds.json > assets/minecraft/sounds.json
echo , >> assets/minecraft/sounds.json
tail -n +2 ../default/assets/minecraft/sounds.json >> assets/minecraft/sounds.json
../../merge_folder.php ../../src/httyd .
find . -name ".DS_Store" -type f -delete
zip -q -X -r ../Magic-all-RP-1.20.zip *
cd ..
echo "** BUILDING MODEL ENGINE **"
mkdir modelengine
cd modelengine
cp -R ../all/* .
../../merge_folder.php ../../src/modelengine .
find . -name ".DS_Store" -type f -delete
zip -q -X -r ../Magic-modelengine-RP-1.20.zip *
cd ..
echo "** BUILDING HIRES-MODELENGINE **"
mkdir hires-modelengine
cd hires-modelengine
cp -R ../modelengine/* .
cp -R ../../src/hires/* .
find . -name ".DS_Store" -type f -delete
zip -q -X -r ../Magic-hires-modelengine-RP-1.20.zip *
cd ..
echo "** BUILDING SLIMEFUN **"
mkdir slimefun
cd slimefun
cp -R ../all/* .
../../merge_folder.php ../../src/slimefun .
find . -name ".DS_Store" -type f -delete
zip -q -X -r ../Magic-slimefun-RP-1.20.zip *
cd ..
echo "** BUILDING HIRES-ALL **"
mkdir hires-all
cd hires-all
cp -R ../all/* .
cp -R ../../src/hires/* .
find . -name ".DS_Store" -type f -delete
zip -q -X -r ../Magic-hires-all-RP-1.20.zip *
cd ..
echo "** BUILDING HIRES-ROBES **"
mkdir hires-robes
cd hires-robes
cp -R ../robes/* .
cp -R ../../src/hires/* .
find . -name ".DS_Store" -type f -delete
zip -q -X -r ../Magic-hires-robes-RP-1.20.zip *
cd ..
echo "** BUILDING HIRES **"
mkdir hires
cd hires
cp -R ../default/* .
cp -R ../../src/hires/* .
find . -name ".DS_Store" -type f -delete
zip -q -X -r ../Magic-hires-RP-1.20.zip *
cd ..