-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sh
executable file
·740 lines (626 loc) · 15.7 KB
/
build.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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
#!/bin/bash
set -eu
shopt -s extglob
####################
set +u
if [[ "${STYLE}" != "number" ]]; then
STYLE="dot"
fi
set -u
####################
depends=( ffmpeg curl zip convert bc inkscape )
notfound=()
if [[ "${STYLE}" == "number" ]]; then
depends+=("unzip")
fi
for app in "${depends[@]}"; do
if ! type "$app" > /dev/null 2>&1; then
notfound+=("$app")
fi
done
if [[ ${#notfound[@]} -ne 0 ]]; then
echo Failed to lookup dependency:
for app in "${notfound[@]}"; do
echo "- $app"
done
exit 1
fi
####################
DIR="$(cd "$(dirname "$0")" && pwd)"
####################
set -x
mkdir -p "${DIR}/workdir/yr32"
cd "${DIR}/workdir"
####################
if [[ "${STYLE}" == "number" ]]; then
# depName=rsms/inter
INTER_VERSION="v4.0"
PURE_INTER_VERSION="${INTER_VERSION:1}"
if [[ ! -e "Inter-$PURE_INTER_VERSION.zip" ]]; then
curl -L -f -s \
--output "Inter-$PURE_INTER_VERSION.zip" \
"https://github.com/rsms/inter/releases/download/$INTER_VERSION/Inter-$PURE_INTER_VERSION.zip"
unzip -p "Inter-$PURE_INTER_VERSION.zip" "extras/otf/InterDisplay-Medium.otf" > InterDisplay-Medium.otf
fi
fi
# depName=git@github.com:googlefonts/Inconsolata.git
INCONSOLATA_COMMIT="fc1fc21081558b39a2db43bfd9b65bf9acb50701"
if [[ ! -e Inconsolata-Black.ttf ]]; then
curl -L -f -s \
--output Inconsolata-Black.ttf \
https://github.com/googlefonts/Inconsolata/raw/${INCONSOLATA_COMMIT}/fonts/ttf/Inconsolata-Black.ttf
mkdir -p ~/.fonts
cp ./Inconsolata-Black.ttf ~/.fonts/
fi
# depName=git@github.com:sevmeyer/oxanium.git
OXANIUM_COMMIT="a8f39e0c71186190027a093e9001459410192d1e"
if [[ ! -e Oxanium-Regular.ttf ]]; then
curl -L -f -s \
--output Oxanium-Regular.ttf \
https://github.com/sevmeyer/oxanium/raw/${OXANIUM_COMMIT}/fonts/ttf/Oxanium-Regular.ttf
mkdir -p ~/.fonts
cp ./Oxanium-Regular.ttf ~/.fonts/
fi
###################
function generate_empty_wav() {
if [[ ! -e empty.ogg ]]; then
touch empty.ogg
fi
for f in "$@"; do
cp empty.ogg "yr32/$f.ogg"
done
}
function generate_empty_png() {
if [[ ! -e empty.png ]]; then
convert \
-size 1x1 xc:transparent \
empty.png
fi
for f in "$@"; do
cp empty.png "yr32/$f.png"
done
}
function generate_hit_emoji() {
color=$1
label=$2
output=$3
convert \
-size 128x128 \
-gravity center \
-font "Inconsolata-Black.ttf" \
-pointsize 64 \
-fill white \
-stroke "$color" \
-strokewidth 4 \
-background transparent \
"label:$label" \
\( \
+clone \
-background "#33333366" \
-shadow 80x3+3+3 \
\) \
-background transparent \
+swap \
-layers merge \
+repage \
-rotate 5 \
-trim \
"$output"
}
function generate_ranking_image() {
rankname=$1
rankchar=$2
color=$3
yshift=$4
convert \
-size 800x1000 \
-gravity center \
-kerning -250 \
-font "Oxanium-Regular.ttf" \
-stroke '#ffffff30' \
-strokewidth 20 \
-pointsize 1000 \
-fill "$color" \
-background transparent \
"label:$rankchar" \
-roll "${yshift}+50" \
\( \
+clone \
-background "#33333366" \
-shadow 80x16+16+16 \
\) \
-background transparent \
+swap \
-layers merge \
+repage \
"yr32/ranking-$rankname@2x.png"
convert \
"yr32/ranking-$rankname@2x.png" \
-resize 64x \
"yr32/ranking-$rankname-small@2x.png"
}
function generate_single_char_image(){
char=$1
size=$2
output=$3
convert \
-font "Oxanium-Regular.ttf" \
-fill white \
-pointsize "$2" \
-background transparent \
"label:$char" \
\( \
+clone \
-background "#33333366" \
-shadow 80x2+2+2 \
\) \
-background transparent \
+swap \
-layers merge \
+repage \
"$output"
}
function generate_circle_number(){
char=$1
output=$2
convert \
-font "InterDisplay-Medium.otf" \
-fill white \
-weight Bold \
-pointsize 120 \
-background transparent \
"label:$char" \
\( \
+clone \
-background "#33333366" \
-shadow 80x2+2+2 \
\) \
-background transparent \
+swap \
-layers merge \
+repage \
-background "#00000000" -gravity north -splice 0x10 \
"$output"
}
function generate_string_image() {
size=$1
color=$2
left_spacing=$3
top_spacing=$4
label=$5
output=$6
convert \
-font "Oxanium-Regular.ttf" \
-pointsize "$size" \
-fill "$color" \
-background transparent \
"label:$label" \
\( \
+clone \
-background "#33333366" \
-shadow 80x3+3+3 \
\) \
-background transparent \
+swap \
-layers merge \
+repage \
-trim \
-gravity northwest \
-splice "${left_spacing}x${top_spacing}" \
"$output"
}
function generate_mod_image() {
color=$1
label=$4
output=$5
convert \
-size 128x128 \
-font "Oxanium-Regular.ttf" \
-pointsize 48 \
-background "$color" \
"label:$label" \
-draw "circle 64,64 64,24" \
\( \
+clone \
-background "#33333366" \
-shadow 80x3+3+3 \
\) \
-background transparent \
+swap \
-layers merge \
+repage \
"$output"
}
####################
sound_prefixes=( soft normal drum )
function expand_all_prefix() {
for f in "$@"; do
for prefix in "${sound_prefixes[@]}"; do
echo "$prefix-$f"
done
done
}
####################
rm -rf yr32/*
# osu! - Skinnable Files - Detail List
# https://docs.google.com/spreadsheets/d/1bhnV-CQRMy3Z0npQd9XSoTdkYxz0ew5e648S00qkJZ8/edit
# Browse Fonts - Google Fonts
# https://fonts.google.com/
# osu! UI sounds
generate_empty_wav \
shutter
# osu! UI textures
generate_empty_png \
star2@2x \
cursortrail@2x \
menu-snow@2x \
scorebar-marker@2x \
ranking-title@2x \
scorebar-bg@2x \
mania-stage-hint@2x \
mania-key1@2x \
mania-key2@2x \
mania-keyS@2x \
mania-key1D@2x \
mania-key2D@2x \
mania-keySD@2x
convert -size 32x32 \
xc:#50506733 \
yr32/cursor-smoke@2x.png
convert -size 1600x220 \
-define gradient:angle=45 \
gradient:#606060ff-#00000000 \
-fill none \
-stroke "#33336666" \
-strokewidth 5 \
-draw """
circle 800,-20 800,155
""" \
-strokewidth 10 \
-draw """
circle 1000,300 1000,50
""" \
\( \
xc:none \
-size 1600x220 \
-stroke none \
-fill white \
-draw "roundrectangle 10,15 1400,205 10,10" \
\) \
-compose dst_in -composite \
yr32/menu-button-background@2x.png
convert -size 1290x10 \
xc:#aaaaff40 \
yr32/scorebar-colour@2x.png
generate_ranking_image xh SS '#eeeeeeff' +0
generate_ranking_image sh S '#eeeeeeff' +0
generate_ranking_image x SS '#ffff66ff' +0
generate_ranking_image s S '#ffff66ff' +0
generate_ranking_image a A '#66bb66ff' +0
generate_ranking_image b B '#6666bbff' +0
generate_ranking_image c C '#bb66bbff' -40
generate_ranking_image d D '#bb6666ff' +0
for n in $(seq 0 9); do
generate_single_char_image "$n" 64 "yr32/score-$n@2x.png"
done
generate_single_char_image ',' 64 yr32/score-comma@2x.png
generate_single_char_image '.' 64 yr32/score-dot@2x.png
generate_single_char_image '%' 64 yr32/score-percent@2x.png
generate_single_char_image 'x' 64 yr32/score-x@2x.png
for f in ./yr32/score-*@2x.png; do
filename=$(basename "$f")
char=${filename#score-}
char=${char%@2x.png}
convert \
"yr32/score-$char@2x.png" \
-scale x32 \
"yr32/scoreentry-$char@2x.png"
done
generate_string_image 160 '#eeeeeeff' 0 0 '!UNRANKED!' yr32/play-unranked@2x.png
generate_string_image 128 '#eeeeeeff' 0 0 'CLEAR' yr32/spinner-clear@2x.png
generate_string_image 192 '#eeeeeeff' 0 0 'PASS' yr32/section-pass@2x.png
generate_string_image 192 '#eeeeeeff' 0 0 'FAILURE' yr32/section-fail@2x.png
generate_string_image 96 '#eeeeeeff' 0 0 '- PERFECT -' yr32/ranking-perfect@2x.png
generate_string_image 64 '#eeeeeeff' 20 0 'combo' yr32/ranking-maxcombo@2x.png
generate_string_image 64 '#eeeeeeff' 0 0 'accuracy' yr32/ranking-accuracy@2x.png
generate_string_image 192 '#eeeeeeff' 0 0 '3' yr32/count3@2x.png
generate_string_image 192 '#eeeeeeff' 0 0 '2' yr32/count2@2x.png
generate_string_image 192 '#eeeeeeff' 0 0 '1' yr32/count1@2x.png
generate_string_image 96 '#eeeeeeff' 0 5 '#' yr32/star@2x.png
generate_string_image 128 '#eeeeeeff' 0 0 'START' yr32/go@2x.png
generate_string_image 192 '#eeeeee99' 0 0 '>' yr32/arrow-warning@2x.png
generate_string_image 192 '#eeeeee99' 0 0 '>' yr32/arrow-pause@2x.png
generate_string_image 128 '#eeeeeeff' 0 0 '- Continue -' yr32/pause-continue@2x.png
generate_string_image 128 '#eeeeeeff' 0 0 '- Retry -' yr32/pause-retry@2x.png
generate_string_image 128 '#eeeeeeff' 0 0 '- Replay -' yr32/pause-replay@2x.png
generate_string_image 128 '#eeeeeeff' 0 0 '- Back -' yr32/pause-back@2x.png
generate_string_image 192 '#eeeeeeff' 0 0 'Skip >>' yr32/play-skip@2x.png
generate_string_image 48 '#eeeeeeff' 20 25 'spin/min' yr32/spinner-rpm@2x.png
inkscape --export-type=png ../svgs/*.svg
cp ../svgs/*.png ./yr32
convert -size 560x120 \
-define gradient:angle=90 \
gradient:#33333388-#33333333 \
yr32/spinner-rpm@2x.png \
-composite \
yr32/spinner-rpm@2x.png
convert -size 1200x975 \
-define gradient:angle=135 \
gradient:#00003388-#00003300 \
-fill '#ffffff33' \
-draw "polygon 0,140 0,160 1200,160 1200,140" \
yr32/ranking-panel@2x.png
convert -size 616x296 \
-define gradient:angle=135 \
gradient:#00003388-#00003300 \
yr32/ranking-graph@2x.png
# osu! play textures
generate_empty_png \
hit300@2x hit300g@2x hit300k@2x \
sliderendcircle@2x \
sliderfollowcircle@2x \
spinner-glow@2x \
spinner-middle@2x \
spinner-middle2@2x \
spinner-top@2x \
spinner-approachcircle@2x \
spinner-spin@2x \
spinner-osu@2x \
followpoint-0@2x followpoint-1@2x \
followpoint-2@2x followpoint-3@2x \
lightingN@2x \
lightingL@2x \
lighting@2x \
ready@2x \
comboburst@2x
len=350
center=800
pos_x_left=$(( center - len ))
pos_x_right=$(( center + len * 2 ))
pos_y_top=$( echo "$center-sqrt(3)*$len" | bc -l )
pos_y_bottom=$( echo "$center+sqrt(3)*$len" | bc -l )
convert -size 1600x1600 \
xc:none \
-fill "#00003311" \
-stroke "#ffffff88" \
-strokewidth 15 \
-draw """
circle $center,$center $center,$(( center + len * 2 ))
""" \
-fill "#ffffffee" \
-stroke none \
-draw """
circle $center,$center $center,$(( center - 15 ))
""" \
yr32/spinner-bottom@2x.png
convert -size 256x256 \
xc:none \
-stroke "#ffffffdd" \
-strokewidth 12 \
-fill none \
-draw "circle 128,128 128,15" \
yr32/hitcircleoverlay@2x.png
cp yr32/hitcircleoverlay@2x.png yr32/sliderb@2x.png
convert -size 256x256 \
xc:none \
-stroke "#ffffff55" \
-strokewidth 5 \
-fill none \
-draw "circle 128,128 128,15" \
yr32/approachcircle@2x.png
convert -size 256x256 \
gradient:#00000060-#ffffff60 \
\( \
-size 256x256 \
xc:none \
-draw "circle 128,128 128,10" \
\) \
-compose dst_in -composite \
yr32/hitcircle@2x.png
for n in $(seq 0 9); do
if [[ "${STYLE}" == "dot" ]]; then
HIT_CIRCLE_OVERLAP=32
convert -size 64x64 \
xc:none \
-fill "#eeeeeeff" \
-draw "circle 32,32 32,1" \
"yr32/default-$n@2x.png"
convert "yr32/default-$n@2x.png" \
-background "#00000000" \
-gravity north \
-splice 0x10 \
"yr32/default-$n@2x.png"
else
HIT_CIRCLE_OVERLAP=10
generate_circle_number "$n" "yr32/default-$n@2x.png"
fi
done
for n in $(seq 0 9); do
convert -size 256x8 \
"radial-gradient:#ffffff2${n}-#ffffff00" \
yr32/followpoint-$(( n + 3 ))@2x.png
done
len=16
center=128
pos_x_left=$(( center - len - 32 ))
pos_x_right=$(( center + len * 2 - 32 ))
pos_y_top=$( echo "$center-sqrt(3)*$len" | bc -l )
pos_y_bottom=$( echo "$center+sqrt(3)*$len" | bc -l )
convert -size 256x256 \
xc:none \
-fill "#ffffffaa" \
-draw "polygon $pos_x_left,$pos_y_top $pos_x_left,$pos_y_bottom $pos_x_right,$center" \
yr32/reversearrow@2x.png
generate_hit_emoji "#60A020" "-_¡" yr32/hit100@2x.png
generate_hit_emoji "#60A020" "-_¡" yr32/hit100k@2x.png
generate_hit_emoji "#2060A0" "-_¡" yr32/hit50@2x.png
generate_hit_emoji "#2060A0" "-_¡" yr32/hit50k@2x.png
generate_hit_emoji "#E04040" "¡_¡" yr32/hit0@2x.png
convert -size 32x32 \
xc:none \
-fill "#ffffff88" \
-draw "circle 16,16 16,5" \
yr32/sliderscorepoint@2x.png
# Set true to render slider end
if false; then
convert -size 32x32 \
xc:none \
-fill "#ffffff88" \
-draw "circle 16,16 16,0" \
yr32/sliderendcircle@2x.png
fi
# osu! play sounds
# shellcheck disable=SC2046
generate_empty_wav \
$(expand_all_prefix sliderslide) \
$(expand_all_prefix sliderwhistle) \
$(expand_all_prefix hitwhistle) \
readys
ffmpeg \
-hide_banner -loglevel error \
-y \
-f lavfi -i aevalsrc="random(0)-0.25:s=44100" \
-f lavfi -i anullsrc \
-filter_complex \
"""
[0]atrim=0:0.025[a0];
[1]atrim=0:0.025[a1];
[a0][a1]acrossfade=d=0.025,highpass=f=200,lowpass=f=5000,volume=15dB
""" \
normal-hitnormal.ogg
for prefix in "${sound_prefixes[@]}"; do
cp normal-hitnormal.ogg "yr32/$prefix-hitnormal.ogg"
done
ffmpeg \
-hide_banner -loglevel error \
-y \
-f lavfi -i aevalsrc="random(0)-0.5:s=44100" \
-f lavfi -i anullsrc \
-filter_complex \
"""
[0]atrim=0:0.05[a0];
[1]atrim=0:0.05[a1];
[a0][a1]acrossfade=d=0.05,highpass=f=200,lowpass=f=4000,volume=10dB
""" \
normal-hitfinish.ogg
for prefix in "${sound_prefixes[@]}"; do
cp normal-hitfinish.ogg "yr32/$prefix-hitfinish.ogg"
done
ffmpeg \
-hide_banner -loglevel error \
-y \
-f lavfi -i aevalsrc="random(0)-0.25:s=44100" \
-f lavfi -i anullsrc \
-filter_complex \
"""
[0]atrim=0:0.025[a0];
[1]atrim=0:0.025[a1];
[a0][a1]acrossfade=d=0.025,highpass=f=5000,lowpass=f=15000,volume=10dB
""" \
normal-slidertick.ogg
for prefix in "${sound_prefixes[@]}"; do
cp normal-slidertick.ogg "yr32/$prefix-slidertick.ogg"
done
ffmpeg \
-hide_banner -loglevel error \
-y \
-f lavfi -i aevalsrc="random(0)-0.25:s=44100" \
-f lavfi -i anullsrc \
-filter_complex \
"""
[0]atrim=0:0.025[a0];
[1]atrim=0:0.025[a1];
[a0][a1]acrossfade=d=0.025,highpass=f=5000,lowpass=f=8000,volume=10dB
""" \
normal-hitclap.ogg
for prefix in "${sound_prefixes[@]}"; do
cp normal-hitclap.ogg "yr32/$prefix-hitclap.ogg"
done
ffmpeg \
-hide_banner -loglevel error \
-y \
-f lavfi -i sine="frequency=2000:sample_rate=44100" \
-f lavfi -i anullsrc \
-filter_complex \
"""
[0]atrim=0:0.33[a0];
[1]atrim=0:0.33[a1];
[a0][a1]acrossfade=d=0.33,volume=12dB
""" \
yr32/combobreak.ogg
cp yr32/combobreak.ogg yr32/gos.ogg
cp yr32/combobreak.ogg yr32/spinnerbonus.ogg
ffmpeg \
-hide_banner -loglevel error \
-y \
-f lavfi -i sine="frequency=1000:sample_rate=44100" \
-f lavfi -i anullsrc \
-filter_complex \
"""
[0]atrim=0:0.33[a0];
[1]atrim=0:0.33[a1];
[a0][a1]acrossfade=d=0.33,volume=12dB
""" \
yr32/count1s.ogg
cp yr32/count1s.ogg yr32/count3s.ogg
cp yr32/count1s.ogg yr32/count2s.ogg
ffmpeg \
-hide_banner -loglevel error \
-y \
-f lavfi -i sine="frequency=2000:sample_rate=44100" \
-f lavfi -i anullsrc \
-f lavfi -i sine="frequency=1000:sample_rate=44100" \
-f lavfi -i anullsrc \
-filter_complex \
"""
[0]atrim=0:0.15[a0];
[1]atrim=0:0.15[a1];
[a0][a1]acrossfade=d=0.15[a2];
[2]atrim=0:0.15[a3];
[3]atrim=0:0.15[a4];
[a3][a4]acrossfade=d=0.15[a5];
[a2][a5]concat=n=2:v=0:a=1,volume=12dB
""" \
-t 1 \
yr32/sectionpass.ogg
ffmpeg \
-hide_banner -loglevel error \
-y \
-f lavfi -i sine="frequency=1000:sample_rate=44100" \
-f lavfi -i anullsrc \
-f lavfi -i sine="frequency=1000:sample_rate=44100" \
-f lavfi -i anullsrc \
-filter_complex \
"""
[0]atrim=0:0.15[a0];
[1]atrim=0:0.15[a1];
[a0][a1]acrossfade=d=0.15[a2];
[2]atrim=0:0.15[a3];
[3]atrim=0:0.15[a4];
[a3][a4]acrossfade=d=0.15[a5];
[a2][a5]concat=n=2:v=0:a=1,volume=12dB
""" \
-t 1 \
yr32/sectionfail.ogg
####################
cd ./yr32
set +u
if [[ -n "$GITHUB_REF" ]]; then
VERSION_NAME=${GITHUB_REF##*/}
if [[ $VERSION_NAME == "master" ]]; then
VERSION_NAME=$(git rev-parse --short HEAD)
elif [[ ${VERSION_NAME:0:1} == "v" ]]; then
VERSION_NAME=${VERSION_NAME:1}
fi
else
VERSION_NAME=localbuild
fi
set -u
# shellcheck disable=SC2002
cat "${DIR}/skin.ini" \
| sed "s/SB_VERSION/$VERSION_NAME/g" "${DIR}/skin.ini" \
| sed "s/HIT_CIRCLE_OVERLAP/$HIT_CIRCLE_OVERLAP/g" \
> skin.ini
cp "${DIR}/README.md" README.md
cp "${DIR}/LICENSE" LICENSE
zip -r "${DIR}/yr32-skinbuilder-$STYLE@$VERSION_NAME.osk" .